aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoraurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162>2008-12-07 23:00:00 +0000
committeraurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162>2008-12-07 23:00:00 +0000
commit0c34a5d72228e6d6cb0c1eb2797cfa4c68c5292b (patch)
tree34fb7609d54b6b336fe8d522ae3f8ca6532cc769
parentfd69fe2b94c12c3889c0ccf0899f4e821ad95e79 (diff)
target-ppc: kill a few warnings
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5941 c046a42c-6fe2-441c-8c8c-71466251a162
-rw-r--r--hw/ppc4xx_pci.c2
-rw-r--r--target-ppc/translate.c8
2 files changed, 6 insertions, 4 deletions
diff --git a/hw/ppc4xx_pci.c b/hw/ppc4xx_pci.c
index bfd2f3e9b0..b21c2feff2 100644
--- a/hw/ppc4xx_pci.c
+++ b/hw/ppc4xx_pci.c
@@ -21,6 +21,8 @@
* 4xx SoCs, such as the 440EP. */
#include "hw.h"
+#include "ppc.h"
+#include "ppc4xx.h"
typedef target_phys_addr_t pci_addr_t;
#include "pci.h"
diff --git a/target-ppc/translate.c b/target-ppc/translate.c
index 0b26269747..adee2b66e2 100644
--- a/target-ppc/translate.c
+++ b/target-ppc/translate.c
@@ -3024,7 +3024,7 @@ GEN_HANDLER(std, 0x3E, 0xFF, 0xFF, 0x00000000, PPC_64B)
#endif
/*** Integer load and store with byte reverse ***/
/* lhbrx */
-void always_inline gen_qemu_ld16ur(TCGv t0, TCGv t1, int flags)
+static void always_inline gen_qemu_ld16ur(TCGv t0, TCGv t1, int flags)
{
TCGv_i32 temp = tcg_temp_new_i32();
gen_qemu_ld16u(t0, t1, flags);
@@ -3036,7 +3036,7 @@ void always_inline gen_qemu_ld16ur(TCGv t0, TCGv t1, int flags)
GEN_LDX(lhbr, ld16ur, 0x16, 0x18, PPC_INTEGER);
/* lwbrx */
-void always_inline gen_qemu_ld32ur(TCGv t0, TCGv t1, int flags)
+static void always_inline gen_qemu_ld32ur(TCGv t0, TCGv t1, int flags)
{
TCGv_i32 temp = tcg_temp_new_i32();
gen_qemu_ld32u(t0, t1, flags);
@@ -3048,7 +3048,7 @@ void always_inline gen_qemu_ld32ur(TCGv t0, TCGv t1, int flags)
GEN_LDX(lwbr, ld32ur, 0x16, 0x10, PPC_INTEGER);
/* sthbrx */
-void always_inline gen_qemu_st16r(TCGv t0, TCGv t1, int flags)
+static void always_inline gen_qemu_st16r(TCGv t0, TCGv t1, int flags)
{
TCGv_i32 temp = tcg_temp_new_i32();
TCGv t2 = tcg_temp_new();
@@ -3063,7 +3063,7 @@ void always_inline gen_qemu_st16r(TCGv t0, TCGv t1, int flags)
GEN_STX(sthbr, st16r, 0x16, 0x1C, PPC_INTEGER);
/* stwbrx */
-void always_inline gen_qemu_st32r(TCGv t0, TCGv t1, int flags)
+static void always_inline gen_qemu_st32r(TCGv t0, TCGv t1, int flags)
{
TCGv_i32 temp = tcg_temp_new_i32();
TCGv t2 = tcg_temp_new();