« Previous | Next » 

Revision 951fab99

ID951fab990db05d47ab9da5e72521e406c73a3eb9

Added by James Hogan over 10 years ago

target-mips: fix get_physical_address() #if 0 build error

In get_physical_address() is a qemu_log() call inside an #if 0 block.
When enabled the following build error is hit:

target-mips/helper.c In function ‘get_physical_address’:
target-mips/helper.c:220:13: error: format ‘%x’ expects argument of type ‘unsigned int’, but argument 5 has type ‘hwaddr’ [-Werror=format]

Fix the *physical (hwaddr) formatting by using "%"HWADDR_PRIx instead of
TARGET_FMT_lx.

Signed-off-by: James Hogan <>
Cc: Aurelien Jarno <>
Signed-off-by: Yongbok Kim <>
Signed-off-by: Aurelien Jarno <>

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences