aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsim/ppc/configure2
-rw-r--r--sim/ppc/configure.ac2
-rw-r--r--sim/ppc/hw_memory.c4
-rw-r--r--sim/ppc/hw_opic.c6
4 files changed, 8 insertions, 6 deletions
diff --git a/sim/ppc/configure b/sim/ppc/configure
index 1e42a8a..a53a30f 100755
--- a/sim/ppc/configure
+++ b/sim/ppc/configure
@@ -3486,7 +3486,7 @@ sim_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith
-Wmissing-declarations
-Wmissing-prototypes
-Wdeclaration-after-statement -Wmissing-parameter-type
--Wno-pointer-sign
+-Wpointer-sign
-Wold-style-declaration -Wold-style-definition
"
# Enable -Wno-format by default when using gcc on mingw since many
diff --git a/sim/ppc/configure.ac b/sim/ppc/configure.ac
index 8225081..d1e9c09 100644
--- a/sim/ppc/configure.ac
+++ b/sim/ppc/configure.ac
@@ -427,7 +427,7 @@ sim_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith
-Wmissing-declarations
-Wmissing-prototypes
-Wdeclaration-after-statement -Wmissing-parameter-type
--Wno-pointer-sign
+-Wpointer-sign
-Wold-style-declaration -Wold-style-definition
"
# Enable -Wno-format by default when using gcc on mingw since many
diff --git a/sim/ppc/hw_memory.c b/sim/ppc/hw_memory.c
index 46b22f7..c0826b7 100644
--- a/sim/ppc/hw_memory.c
+++ b/sim/ppc/hw_memory.c
@@ -199,9 +199,9 @@ hw_memory_init_address(device *me)
cell_nr += 2) {
hw_memory_chunk *new_chunk = ZALLOC(hw_memory_chunk);
device_find_integer_array_property(me, "available", cell_nr,
- &new_chunk->address);
+ (signed_cell *)&new_chunk->address);
device_find_integer_array_property(me, "available", cell_nr + 1,
- &new_chunk->size);
+ (signed_cell *)&new_chunk->size);
new_chunk->available = 1;
*curr_chunk = new_chunk;
curr_chunk = &new_chunk->next;
diff --git a/sim/ppc/hw_opic.c b/sim/ppc/hw_opic.c
index 8afe312..9404204 100644
--- a/sim/ppc/hw_opic.c
+++ b/sim/ppc/hw_opic.c
@@ -417,10 +417,12 @@ hw_opic_init_data(device *me)
}
if (!device_find_integer_array_property(me, "interrupt-ranges",
reg_nr * 2,
- &opic->isu_block[isb].int_number)
+ (signed_cell *)
+ &opic->isu_block[isb].int_number)
|| !device_find_integer_array_property(me, "interrupt-ranges",
reg_nr * 2 + 1,
- &opic->isu_block[isb].range))
+ (signed_cell *)
+ &opic->isu_block[isb].range))
device_error(me, "missing or invalid interrupt-ranges property entry %d", reg_nr);
/* first reg entry specifies the address of both the IDU and the
first set of ISU registers, adjust things accordingly */