diff options
author | Alexander Graf | 2009-12-21 14:02:39 +0100 |
---|---|---|
committer | Aurelien Jarno | 2009-12-21 16:03:03 +0100 |
commit | 73b01960b4af0e75c955757034a91b6370a4edb8 (patch) | |
tree | c18182f35a0b9b787c26ac5f596c844011916b27 /hw/ppc.c | |
parent | PPC64: Fix alternate timebase (diff) | |
download | qemu-73b01960b4af0e75c955757034a91b6370a4edb8.tar.gz qemu-73b01960b4af0e75c955757034a91b6370a4edb8.tar.xz qemu-73b01960b4af0e75c955757034a91b6370a4edb8.zip |
PPC: Make DCR uint32_t
For what I know DCR is always 32 bits wide, so we should also use uint32_t to
pass it along the stacks.
This fixes a warning when compiling qemu-system-ppc64 with KVM enabled, making
it compile without --disable-werror
Signed-off-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Diffstat (limited to 'hw/ppc.c')
-rw-r--r-- | hw/ppc.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1009,7 +1009,7 @@ struct ppc_dcr_t { int (*write_error)(int dcrn); }; -int ppc_dcr_read (ppc_dcr_t *dcr_env, int dcrn, target_ulong *valp) +int ppc_dcr_read (ppc_dcr_t *dcr_env, int dcrn, uint32_t *valp) { ppc_dcrn_t *dcr; @@ -1029,7 +1029,7 @@ int ppc_dcr_read (ppc_dcr_t *dcr_env, int dcrn, target_ulong *valp) return -1; } -int ppc_dcr_write (ppc_dcr_t *dcr_env, int dcrn, target_ulong val) +int ppc_dcr_write (ppc_dcr_t *dcr_env, int dcrn, uint32_t val) { ppc_dcrn_t *dcr; |