diff options
author | Alexander Graf <agraf@suse.de> | 2009-12-21 14:02:39 +0100 |
---|---|---|
committer | Aurelien Jarno <aurelien@aurel32.net> | 2009-12-21 16:03:03 +0100 |
commit | 73b01960b4af0e75c955757034a91b6370a4edb8 (patch) | |
tree | c18182f35a0b9b787c26ac5f596c844011916b27 /hw/ppc.h | |
parent | b711de9565d3c8f758956dfa96b648cc321577b6 (diff) | |
download | qemu-73b01960b4af0e75c955757034a91b6370a4edb8.zip qemu-73b01960b4af0e75c955757034a91b6370a4edb8.tar.gz qemu-73b01960b4af0e75c955757034a91b6370a4edb8.tar.bz2 |
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.h')
-rw-r--r-- | hw/ppc.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -13,8 +13,8 @@ static inline void clk_setup (clk_setup_t *clk, uint32_t freq) clk_setup_cb cpu_ppc_tb_init (CPUState *env, uint32_t freq); /* Embedded PowerPC DCR management */ -typedef target_ulong (*dcr_read_cb)(void *opaque, int dcrn); -typedef void (*dcr_write_cb)(void *opaque, int dcrn, target_ulong val); +typedef uint32_t (*dcr_read_cb)(void *opaque, int dcrn); +typedef void (*dcr_write_cb)(void *opaque, int dcrn, uint32_t val); int ppc_dcr_init (CPUState *env, int (*dcr_read_error)(int dcrn), int (*dcr_write_error)(int dcrn)); int ppc_dcr_register (CPUState *env, int dcrn, void *opaque, |