Revert "reset state for load_linux"
commitfaf8a63492cd98f00f7daff001e0d27b27038bec
authorAnthony Liguori <aliguori@us.ibm.com>
Wed, 13 May 2009 13:06:54 +0000 (13 08:06 -0500)
committerAnthony Liguori <aliguori@us.ibm.com>
Wed, 13 May 2009 13:06:54 +0000 (13 08:06 -0500)
tree35b2f5d95f2851e0f2a6756585499251aa758f90
parent34aee2552fb5f4329d59a60f939656214b26d7f8
Revert "reset state for load_linux"

This reverts commit 2da1e398641d9fccf683645c808dee0d088f84cf.

This fix on the stable branch:

  commit 2da1e398641d9fccf683645c808dee0d088f84cf
  Author: Glauber Costa <glommer@redhat.com>
  Date:   Fri May 8 02:22:13 2009 -0300

    reset state for load_linux

Caused -kernel to break.

The problem is that we're passing the ROM's ram_addr_t to
load_linux() rather than its target_phys_addr_t. We also
need to register the memory before trying to write to
it.

Signed-off-by: Mark McLoughlin <markmc@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/pc.c