target-i386: fix bits 39:32 of the final physical address when using 4M page
commit6ad53bdf5830bfc30221aee8d4ced9a9eaf8fe03
authorWen Congyang <wency@cn.fujitsu.com>
Sat, 22 Dec 2012 07:13:54 +0000 (22 15:13 +0800)
committerLuiz Capitulino <lcapitulino@redhat.com>
Wed, 9 Jan 2013 17:12:20 +0000 (9 15:12 -0200)
treeb7db31edc04799a878b0a4ec10f1f7bab4d25355
parent7cd5da7eef152a533c5774effd2e7bbfa5976c86
target-i386: fix bits 39:32 of the final physical address when using 4M page

((pde & 0x1fe000) << 19) is the bits 39:32 of the final physical address, and
we shouldn't use unit32_t to calculate it. Convert the type to hwaddr to fix
this problem.

Signed-off-by: Wen Congyang <wency@cn.fujitsu.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
target-i386/arch_memory_mapping.c