]> rtime.felk.cvut.cz Git - lisovros/qemu_apohw.git/commitdiff
Fix some warnings that would be generated by gcc -Wredundant-decls
authorblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>
Sat, 30 Aug 2008 09:51:20 +0000 (09:51 +0000)
committerblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>
Sat, 30 Aug 2008 09:51:20 +0000 (09:51 +0000)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5115 c046a42c-6fe2-441c-8c8c-71466251a162

39 files changed:
block.c
exec-all.h
hw/arm-misc.h
hw/armv7m_nvic.c
hw/isa.h
hw/usb.h
linux-user/arm/nwfpe/fpa11_cprt.c
linux-user/arm/syscall.h
linux-user/m68k/syscall.h
linux-user/main.c
linux-user/qemu.h
linux-user/syscall.c
monitor.c
qemu-log.h [new file with mode: 0644]
slirp/debug.c
slirp/mbuf.c
slirp/misc.h
slirp/slirp_config.h
slirp/socket.c
softmmu_defs.h [new file with mode: 0644]
softmmu_exec.h
softmmu_header.h
target-alpha/exec.h
target-arm/exec.h
target-arm/translate.c
target-cris/exec.h
target-i386/exec.h
target-i386/helper.h
target-m68k/exec.h
target-m68k/translate.c
target-mips/exec.h
target-ppc/translate_init.c
tcg/arm/tcg-target.c
tcg/hppa/tcg-target.c
tcg/i386/tcg-target.c
tcg/ppc/tcg-target.c
tcg/ppc64/tcg-target.c
tcg/sparc/tcg-target.c
tcg/x86_64/tcg-target.c

diff --git a/block.c b/block.c
index d02b705b410e2d9533c43e728facd878c745fd05..db8244caaaaa7c3ee4f2cda1e199cfa00e733c66 100644 (file)
--- a/block.c
+++ b/block.c
@@ -56,7 +56,6 @@ static int bdrv_read_em(BlockDriverState *bs, int64_t sector_num,
 static int bdrv_write_em(BlockDriverState *bs, int64_t sector_num,
                          const uint8_t *buf, int nb_sectors);
 
-BlockDriverState *bdrv_first;
 static BlockDriver *first_drv;
 
 int path_is_absolute(const char *path)
index be629a5b34e04bdaf943ea2482c1cb1de2c2bb60..c5009dc62cecb243c55d0b0e9178a2cb3d745479 100644 (file)
@@ -57,8 +57,7 @@ typedef void (GenOpFunc1)(long);
 typedef void (GenOpFunc2)(long, long);
 typedef void (GenOpFunc3)(long, long, long);
 
-extern FILE *logfile;
-extern int loglevel;
+#include "qemu-log.h"
 
 void gen_intermediate_code(CPUState *env, struct TranslationBlock *tb);
 void gen_intermediate_code_pc(CPUState *env, struct TranslationBlock *tb);
@@ -290,6 +289,8 @@ extern int tb_invalidated_flag;
 void tlb_fill(target_ulong addr, int is_write, int mmu_idx,
               void *retaddr);
 
+#include "softmmu_defs.h"
+
 #define ACCESS_TYPE (NB_MMU_MODES + 1)
 #define MEMSUFFIX _code
 #define env cpu_single_env
index 3660772dbcb2ca192128f48eb6ff9477b8d4ea11..f118edb3bdb79c6c86c62bf07ef33f5832bc6103 100644 (file)
@@ -34,6 +34,9 @@ struct arm_boot_info {
 void arm_load_kernel(CPUState *env, struct arm_boot_info *info);
 
 /* armv7m_nvic.c */
+
+/* Multiplication factor to convert from system clock ticks to qemu timer
+   ticks.  */
 int system_clock_scale;
 qemu_irq *armv7m_nvic_init(CPUState *env);
 
index 26e4c2f2fdee1a9d54659ea37d2ec736599e0d17..c55c958718902db592607386d8bda633825f2ce7 100644 (file)
@@ -50,10 +50,6 @@ typedef struct {
 #define SYSTICK_CLKSOURCE (1 << 2)
 #define SYSTICK_COUNTFLAG (1 << 16)
 
-/* Multiplication factor to convert from system clock ticks to qemu timer
-   ticks.  */
-int system_clock_scale;
-
 /* Conversion factor from qemu timer to SysTick frequencies.  */
 static inline int64_t systick_scale(nvic_state *s)
 {
index 89b3004a53f68cfb959035adbc168f09edb4d1b3..222e4f347b88f2356309c71d2788fe8e48248197 100644 (file)
--- a/hw/isa.h
+++ b/hw/isa.h
@@ -1,3 +1,5 @@
+#ifndef HW_ISA_H
+#define HW_ISA_H
 /* ISA bus */
 
 extern target_phys_addr_t isa_mem_base;
@@ -22,3 +24,4 @@ void DMA_init (int high_page_enable);
 void DMA_register_channel (int nchan,
                            DMA_transfer_handler transfer_handler,
                            void *opaque);
+#endif
index 55b7e5850aa20fd1eabf20d1ab102264e9316921..997e69fa0eb994a6653835ac8f37bac025db136f 100644 (file)
--- a/hw/usb.h
+++ b/hw/usb.h
@@ -235,8 +235,6 @@ int usb_generic_handle_packet(USBDevice *s, USBPacket *p);
 int set_usb_string(uint8_t *buf, const char *str);
 void usb_send_msg(USBDevice *dev, int msg);
 
-void usb_packet_complete(USBPacket *p);
-
 /* usb hub */
 USBDevice *usb_hub_init(int nb_ports);
 
index 04eae8c6fc58572c56b1c922664d893e9dad55ec..fafa120c9bb0c012f4b5fdd89f77761660dc8e6b 100644 (file)
@@ -27,8 +27,6 @@
 //#include "fpmodule.h"
 //#include "fpmodule.inl"
 
-void SetRoundingMode(const unsigned int opcode);
-
 unsigned int PerformFLT(const unsigned int opcode);
 unsigned int PerformFIX(const unsigned int opcode);
 
index f06da76ddefe237126dcc63a561804a14c14f75e..003d42470172115cd48e9f944fc448fe77d8bc41 100644 (file)
@@ -40,5 +40,3 @@ struct target_pt_regs {
 #else
 #define UNAME_MACHINE "armv5tel"
 #endif
-
-uint32_t do_arm_semihosting(CPUState *);
index 47cc66b147667e3363fa151ce1f21b135d510787..2fd85dd6fbf70d3008c17c42145c712b5ae659b3 100644 (file)
@@ -18,5 +18,4 @@ struct target_pt_regs {
 
 #define UNAME_MACHINE "m68k"
 
-void do_m68k_semihosting(CPUState *, int);
 void do_m68k_simcall(CPUState *, int);
index 32f5455e641a70594ec49e7a85cd5a713df64858..cca696cfa41bf8209e2c164c0e5d70070f587868 100644 (file)
@@ -477,9 +477,6 @@ void cpu_loop(CPUX86State *env)
 
 #ifdef TARGET_ARM
 
-/* XXX: find a better solution */
-extern void tb_invalidate_page_range(abi_ulong start, abi_ulong end);
-
 static void arm_cache_flush(abi_ulong start, abi_ulong last)
 {
     abi_ulong addr, last1;
index d3a3c3c20fdafe9e489904c03afad0376df1db9b..a12cc9b69340533fdf429eeb8103cd2c9e152f08 100644 (file)
@@ -199,8 +199,7 @@ int get_osversion(void);
 void fork_start(void);
 void fork_end(int child);
 
-extern int loglevel;
-extern FILE *logfile;
+#include "qemu-log.h"
 
 /* strace.c */
 void print_syscall(int num,
index 741ebd6443ee50de29d937147ed1eaf8acd58342..eba2c02ad7d5d9924b37f48c0cf567ebb7fcbed6 100644 (file)
@@ -269,10 +269,6 @@ extern int personality(int);
 extern int flock(int, int);
 extern int setfsuid(int);
 extern int setfsgid(int);
-extern int setresuid(uid_t, uid_t, uid_t);
-extern int getresuid(uid_t *, uid_t *, uid_t *);
-extern int setresgid(gid_t, gid_t, gid_t);
-extern int getresgid(gid_t *, gid_t *, gid_t *);
 extern int setgroups(int, gid_t *);
 
 #define ERRNO_TABLE_SIZE 1200
index e71f49e85f3cb5af182cc4de37f2a64545d9b889..43b188a7f66a441800d40362314a1bb79973311f 100644 (file)
--- a/monitor.c
+++ b/monitor.c
@@ -2687,8 +2687,6 @@ static void term_read(void *opaque, const uint8_t *buf, int size)
         readline_handle_byte(buf[i]);
 }
 
-static void monitor_start_input(void);
-
 static void monitor_handle_command1(void *opaque, const char *cmdline)
 {
     monitor_handle_command(cmdline);
diff --git a/qemu-log.h b/qemu-log.h
new file mode 100644 (file)
index 0000000..1ebea81
--- /dev/null
@@ -0,0 +1,7 @@
+#ifndef QEMU_LOG_H
+#define QEMU_LOG_H
+
+extern FILE *logfile;
+extern int loglevel;
+
+#endif
index 7c8581d63175d1b9e619e35768f35430642585f7..bfef580694b3062dbd204bd9a4d35a3944acdad6 100644 (file)
@@ -16,8 +16,6 @@ int dostats = 0;
 #endif
 int slirp_debug = 0;
 
-extern char *strerror _P((int));
-
 /* Carry over one item from main.c so that the tty's restored.
  * Only done when the tty being used is /dev/tty --RedWolf */
 #ifndef CONFIG_QEMU
index 5d125542858959e7abfdd453bebb01c5f199b63b..c8797e61f4ac3187543065ddf6c6d6fe490225a9 100644 (file)
@@ -28,7 +28,7 @@ int mbuf_max = 0;
  * Find a nice value for msize
  * XXX if_maxlinkhdr already in mtu
  */
-#define MSIZE (IF_MTU + IF_MAXLINKHDR + sizeof(struct m_hdr ) + 6)
+#define SLIRP_MSIZE (IF_MTU + IF_MAXLINKHDR + sizeof(struct m_hdr ) + 6)
 
 void
 m_init()
@@ -54,7 +54,7 @@ m_get()
        DEBUG_CALL("m_get");
 
        if (m_freelist.m_next == &m_freelist) {
-               m = (struct mbuf *)malloc(MSIZE);
+               m = (struct mbuf *)malloc(SLIRP_MSIZE);
                if (m == NULL) goto end_error;
                mbuf_alloced++;
                if (mbuf_alloced > MBUF_THRESH)
@@ -71,7 +71,7 @@ m_get()
        m->m_flags = (flags | M_USEDLIST);
 
        /* Initialise it */
-       m->m_size = MSIZE - sizeof(struct m_hdr);
+       m->m_size = SLIRP_MSIZE - sizeof(struct m_hdr);
        m->m_data = m->m_dat;
        m->m_len = 0;
        m->m_nextpkt = 0;
index e405e38dc09b652c163ffcf9cd11d6dab1638fa9..f6a4cb090e23575b7de52d67abd335f1e1d1cdaf 100644 (file)
@@ -17,7 +17,7 @@ struct ex_list {
 };
 
 extern struct ex_list *exec_list;
-extern u_int curtime, time_fasttimo, last_slowtimo;
+extern u_int time_fasttimo, last_slowtimo;
 
 extern int (*lprint_print) _P((void *, const char *, va_list));
 extern char *lprint_ptr, *lprint_ptr2, **lprint_arg;
index e7e95dd5a0119c20c05f8f46442aa3064496e8c3..dbc8dfd42848d3a4e4e198786029dc1ec7bbaefc 100644 (file)
 #undef HAVE_SYS_STROPTS_H
 
 /* Define to whatever your compiler thinks inline should be */
-#define inline inline
+//#define inline inline
 
 /* Define to whatever your compiler thinks const should be */
-#define const const
+//#define const const
 
 /* Define if your compiler doesn't like prototypes */
 #undef NO_PROTOTYPES
 #undef HAVE_SETENV
 
 /* Define if you have index() */
-#undef HAVE_INDEX
+#define HAVE_INDEX
 
 /* Define if you have bcmp() */
 #undef HAVE_BCMP
 #define HAVE_MEMMOVE
 
 /* Define if you have gethostid */
-#undef HAVE_GETHOSTID
+#define HAVE_GETHOSTID
 
 /* Define if you DON'T have unix-domain sockets */
 #undef NO_UNIX_SOCKETS
index 75003af15330b9f8beabf2faf50557d6e8dc5cb3..462240924f6153518218beb5e2c40d0020d71caa 100644 (file)
@@ -8,7 +8,6 @@
 #define WANT_SYS_IOCTL_H
 #include <slirp.h>
 #include "ip_icmp.h"
-#include "main.h"
 #ifdef __sun__
 #include <sys/filio.h>
 #endif
diff --git a/softmmu_defs.h b/softmmu_defs.h
new file mode 100644 (file)
index 0000000..e38bb75
--- /dev/null
@@ -0,0 +1,22 @@
+#ifndef SOFTMMU_DEFS_H
+#define SOFTMMU_DEFS_H
+
+uint8_t REGPARM __ldb_mmu(target_ulong addr, int mmu_idx);
+void REGPARM __stb_mmu(target_ulong addr, uint8_t val, int mmu_idx);
+uint16_t REGPARM __ldw_mmu(target_ulong addr, int mmu_idx);
+void REGPARM __stw_mmu(target_ulong addr, uint16_t val, int mmu_idx);
+uint32_t REGPARM __ldl_mmu(target_ulong addr, int mmu_idx);
+void REGPARM __stl_mmu(target_ulong addr, uint32_t val, int mmu_idx);
+uint64_t REGPARM __ldq_mmu(target_ulong addr, int mmu_idx);
+void REGPARM __stq_mmu(target_ulong addr, uint64_t val, int mmu_idx);
+
+uint8_t REGPARM __ldb_cmmu(target_ulong addr, int mmu_idx);
+void REGPARM __stb_cmmu(target_ulong addr, uint8_t val, int mmu_idx);
+uint16_t REGPARM __ldw_cmmu(target_ulong addr, int mmu_idx);
+void REGPARM __stw_cmmu(target_ulong addr, uint16_t val, int mmu_idx);
+uint32_t REGPARM __ldl_cmmu(target_ulong addr, int mmu_idx);
+void REGPARM __stl_cmmu(target_ulong addr, uint32_t val, int mmu_idx);
+uint64_t REGPARM __ldq_cmmu(target_ulong addr, int mmu_idx);
+void REGPARM __stq_cmmu(target_ulong addr, uint64_t val, int mmu_idx);
+
+#endif
index b6e484918558b7587caebb48f1f029b93f685a14..9cc4535b6c597ee256719a9d92c79d27b5a7ce17 100644 (file)
@@ -9,6 +9,8 @@
 #define ldul_executive  ldl_executive
 #define ldul_supervisor ldl_supervisor
 
+#include "softmmu_defs.h"
+
 #define ACCESS_TYPE 0
 #define MEMSUFFIX MMU_MODE0_SUFFIX
 #define DATA_SIZE 1
index 512e5a2e4eb8551a84b6380060b77ce2c56d3e7e..9649717407118f452566f8fefbf8dc285f5d13b7 100644 (file)
 #define ADDR_READ addr_read
 #endif
 
-DATA_TYPE REGPARM glue(glue(__ld, SUFFIX), MMUSUFFIX)(target_ulong addr,
-                                                         int mmu_idx);
-void REGPARM glue(glue(__st, SUFFIX), MMUSUFFIX)(target_ulong addr, DATA_TYPE v, int mmu_idx);
-
 #if (DATA_SIZE <= 4) && (TARGET_LONG_BITS == 32) && defined(__i386__) && \
     (ACCESS_TYPE < NB_MMU_MODES) && defined(ASM_SOFTMMU)
 
index 3b9754d8313706943eb1c657ccad450ea162413b..ec2f8efefbceca402b2996f1829f8b405adff9e3 100644 (file)
@@ -74,8 +74,6 @@ static always_inline void regs_to_env(void)
 
 int cpu_alpha_handle_mmu_fault (CPUState *env, uint64_t address, int rw,
                                 int mmu_idx, int is_softmmu);
-int cpu_alpha_mfpr (CPUState *env, int iprn, uint64_t *valp);
-int cpu_alpha_mtpr (CPUState *env, int iprn, uint64_t val, uint64_t *oldvalp);
 
 void do_interrupt (CPUState *env);
 
index bd4910d11453851a9a5c8d78ef80dd0a1083e672..c543cf4a4600c51f49d091047174730313401ab0 100644 (file)
@@ -61,5 +61,3 @@ static inline int cpu_halted(CPUState *env) {
 void cpu_loop_exit(void);
 
 void raise_exception(int);
-
-uint32_t helper_neon_mul_p8(uint32_t op1, uint32_t op2);
index 7ba78d9fcecb867f18c576a355ea7fe97f3b1ecd..8381bccd6611ef4003242aa0d93d0a77f6f14ee8 100644 (file)
@@ -29,6 +29,7 @@
 #include "exec-all.h"
 #include "disas.h"
 #include "tcg-op.h"
+#include "qemu-log.h"
 
 #define GEN_HELPER 1
 #include "helpers.h"
@@ -72,10 +73,6 @@ typedef struct DisasContext {
 #define DISAS_WFI 4
 #define DISAS_SWI 5
 
-/* XXX: move that elsewhere */
-extern FILE *logfile;
-extern int loglevel;
-
 static TCGv cpu_env;
 /* We reuse the same 64-bit temporaries for efficiency.  */
 static TCGv cpu_V0, cpu_V1, cpu_M0;
index fe63f16986263efd7ce49657895b737650bc5832..123c5386cbfd64eefbf9d450b4ae91fea63bdc3a 100644 (file)
@@ -46,7 +46,6 @@ static inline void regs_to_env(void)
 
 int cpu_cris_handle_mmu_fault (CPUState *env, target_ulong address, int rw,
                               int mmu_idx, int is_softmmu);
-void tlb_fill (target_ulong addr, int is_write, int mmu_idx, void *retaddr);
 
 #if !defined(CONFIG_USER_ONLY)
 #include "softmmu_exec.h"
index 8298b429374c7a1507f8974fc56b265c7dd08111..81f909d91cb9429783b8c369f5c71506e7377120 100644 (file)
@@ -31,8 +31,7 @@
 
 register struct CPUX86State *env asm(AREG0);
 
-extern FILE *logfile;
-extern int loglevel;
+#include "qemu-log.h"
 
 #define EAX (env->regs[R_EAX])
 #define ECX (env->regs[R_ECX])
@@ -58,13 +57,10 @@ extern int loglevel;
 #include "cpu.h"
 #include "exec-all.h"
 
-void cpu_x86_update_cr0(CPUX86State *env, uint32_t new_cr0);
 void cpu_x86_update_cr3(CPUX86State *env, target_ulong new_cr3);
 void cpu_x86_update_cr4(CPUX86State *env, uint32_t new_cr4);
 int cpu_x86_handle_mmu_fault(CPUX86State *env, target_ulong addr,
                              int is_write, int mmu_idx, int is_softmmu);
-void tlb_fill(target_ulong addr, int is_write, int mmu_idx,
-              void *retaddr);
 void __hidden cpu_lock(void);
 void __hidden cpu_unlock(void);
 void do_interrupt(int intno, int is_int, int error_code,
@@ -120,16 +116,6 @@ static inline void svm_check_intercept(uint32_t type)
 #define floatx_round_to_int floatx80_round_to_int
 #define floatx_compare floatx80_compare
 #define floatx_compare_quiet floatx80_compare_quiet
-#define sin sinl
-#define cos cosl
-#define sqrt sqrtl
-#define pow powl
-#define log logl
-#define tan tanl
-#define atan2 atan2l
-#define floor floorl
-#define ceil ceill
-#define ldexp ldexpl
 #else
 #define floatx_to_int32 float64_to_int32
 #define floatx_to_int64 float64_to_int64
@@ -148,16 +134,6 @@ static inline void svm_check_intercept(uint32_t type)
 #define floatx_compare_quiet float64_compare_quiet
 #endif
 
-extern CPU86_LDouble sin(CPU86_LDouble x);
-extern CPU86_LDouble cos(CPU86_LDouble x);
-extern CPU86_LDouble sqrt(CPU86_LDouble x);
-extern CPU86_LDouble pow(CPU86_LDouble, CPU86_LDouble);
-extern CPU86_LDouble log(CPU86_LDouble x);
-extern CPU86_LDouble tan(CPU86_LDouble x);
-extern CPU86_LDouble atan2(CPU86_LDouble, CPU86_LDouble);
-extern CPU86_LDouble floor(CPU86_LDouble x);
-extern CPU86_LDouble ceil(CPU86_LDouble x);
-
 #define RC_MASK         0xc00
 #define RC_NEAR                0x000
 #define RC_DOWN                0x400
index 8df6acc8d6f051ca1c5599f4f1394320089fa940..14ed100d3d8eee803d6f44d3a24efed84fd3e919 100644 (file)
@@ -186,7 +186,6 @@ DEF_HELPER(void, helper_frndint, (void))
 DEF_HELPER(void, helper_fscale, (void))
 DEF_HELPER(void, helper_fsin, (void))
 DEF_HELPER(void, helper_fcos, (void))
-DEF_HELPER(void, helper_fxam_ST0, (void))
 DEF_HELPER(void, helper_fstenv, (target_ulong ptr, int data32))
 DEF_HELPER(void, helper_fldenv, (target_ulong ptr, int data32))
 DEF_HELPER(void, helper_fsave, (target_ulong ptr, int data32))
index 12694453a07058691e0f8119062b3e6d5c6fde71..745606ec0e8a7a6d7958e7460fe2b61b7140b882 100644 (file)
@@ -44,8 +44,6 @@ int cpu_m68k_handle_mmu_fault (CPUState *env, target_ulong address, int rw,
 #include "softmmu_exec.h"
 #endif
 
-void cpu_m68k_flush_flags(CPUM68KState *env, int cc_op);
-
 void cpu_loop_exit(void);
 
 static inline int cpu_halted(CPUState *env) {
index d5872a10b5d620445516d3c1159b394717194ddc..16b2c2c1be2653117dfabfc73e1abc1bbd7a9b4e 100644 (file)
@@ -30,6 +30,7 @@
 #include "exec-all.h"
 #include "disas.h"
 #include "tcg-op.h"
+#include "qemu-log.h"
 
 #define GEN_HELPER 1
 #include "helpers.h"
@@ -157,9 +158,6 @@ typedef struct DisasContext {
 static void *gen_throws_exception;
 #define gen_last_qop NULL
 
-extern FILE *logfile;
-extern int loglevel;
-
 #define OS_BYTE 0
 #define OS_WORD 1
 #define OS_LONG 2
index fcad70af691e0bb7d61c346ef40255d919ff940e..3395da4f4df65199bd4a14691e0e84ad024737c2 100644 (file)
@@ -33,9 +33,6 @@ void cpu_loop_exit(void);
 void do_raise_exception_err (uint32_t exception, int error_code);
 void do_raise_exception (uint32_t exception);
 
-void cpu_dump_state(CPUState *env, FILE *f,
-                    int (*cpu_fprintf)(FILE *f, const char *fmt, ...),
-                    int flags);
 void cpu_mips_irqctrl_init (void);
 uint32_t cpu_mips_get_random (CPUState *env);
 uint32_t cpu_mips_get_count (CPUState *env);
index ad12364ac59b8997df0afd18f0ea0267884e2392..9393e3b94dd34ab4dfb0246991d181fabc4005db 100644 (file)
@@ -8941,8 +8941,6 @@ static void dump_ppc_sprs (CPUPPCState *env)
 #include <stdlib.h>
 #include <string.h>
 
-int fflush (FILE *stream);
-
 /* Opcode types */
 enum {
     PPC_DIRECT   = 0, /* Opcode routine        */
index 3ced47ef824ddd6ca24efcc6ed1da7c6b224e5de..dee1ebca59efb2c492b0c867dfc7bd45e83255d7 100644 (file)
@@ -808,15 +808,8 @@ static void tcg_out_div_helper(TCGContext *s, int cond, const TCGArg *args,
 }
 
 #ifdef CONFIG_SOFTMMU
-extern void __ldb_mmu(void);
-extern void __ldw_mmu(void);
-extern void __ldl_mmu(void);
-extern void __ldq_mmu(void);
-
-extern void __stb_mmu(void);
-extern void __stw_mmu(void);
-extern void __stl_mmu(void);
-extern void __stq_mmu(void);
+
+#include "../../softmmu_defs.h"
 
 static void *qemu_ld_helpers[4] = {
     __ldb_mmu,
index 2d17c8190807a22443271f122f83991f95e038da..3affd26ecf20ee5e4548177337e2c1730204c874 100644 (file)
@@ -345,15 +345,8 @@ static inline void tcg_out_call(TCGContext *s, void *func)
 }
 
 #if defined(CONFIG_SOFTMMU)
-extern void __ldb_mmu(void);
-extern void __ldw_mmu(void);
-extern void __ldl_mmu(void);
-extern void __ldq_mmu(void);
-
-extern void __stb_mmu(void);
-extern void __stw_mmu(void);
-extern void __stl_mmu(void);
-extern void __stq_mmu(void);
+
+#include "../../softmmu_defs.h"
 
 static void *qemu_ld_helpers[4] = {
     __ldb_mmu,
index a7bd748617ada0b504d654beae9b5788a89cfa09..08bb783d3e742a3f2aa16d72759809e424bd6f33 100644 (file)
@@ -404,15 +404,8 @@ static void tcg_out_brcond2(TCGContext *s,
 }
 
 #if defined(CONFIG_SOFTMMU)
-extern void __ldb_mmu(void);
-extern void __ldw_mmu(void);
-extern void __ldl_mmu(void);
-extern void __ldq_mmu(void);
-
-extern void __stb_mmu(void);
-extern void __stw_mmu(void);
-extern void __stl_mmu(void);
-extern void __stq_mmu(void);
+
+#include "../../softmmu_defs.h"
 
 static void *qemu_ld_helpers[4] = {
     __ldb_mmu,
index 5018232af5a61b74b1f49dda057f49bb43351d74..ad174681f3f822748398a9a88537faed8d50a96a 100644 (file)
@@ -454,15 +454,8 @@ static void tcg_out_b (TCGContext *s, int mask, tcg_target_long target)
 }
 
 #if defined(CONFIG_SOFTMMU)
-extern void __ldb_mmu(void);
-extern void __ldw_mmu(void);
-extern void __ldl_mmu(void);
-extern void __ldq_mmu(void);
-
-extern void __stb_mmu(void);
-extern void __stw_mmu(void);
-extern void __stl_mmu(void);
-extern void __stq_mmu(void);
+
+#include "../../softmmu_defs.h"
 
 static void *qemu_ld_helpers[4] = {
     __ldb_mmu,
index 6acf823ebd54b8668688377d536bbe88cbb6ccf0..6b16efa8526e3091694ec155850733e721c2c6df 100644 (file)
@@ -509,15 +509,8 @@ static void tcg_out_b (TCGContext *s, int mask, tcg_target_long target)
 }
 
 #if defined (CONFIG_SOFTMMU)
-extern void __ldb_mmu(void);
-extern void __ldw_mmu(void);
-extern void __ldl_mmu(void);
-extern void __ldq_mmu(void);
-
-extern void __stb_mmu(void);
-extern void __stw_mmu(void);
-extern void __stl_mmu(void);
-extern void __stq_mmu(void);
+
+#include "../../softmmu_defs.h"
 
 static void *qemu_ld_helpers[4] = {
     __ldb_mmu,
index 7eb7cdc5621b6b40578b071d19fc47006356d80e..861ed8e3d31c07f0d0e9253a6291b64d5f1f29cc 100644 (file)
@@ -472,16 +472,8 @@ void tcg_target_qemu_prologue(TCGContext *s)
 }
 
 #if defined(CONFIG_SOFTMMU)
-extern void __ldb_mmu(void);
-extern void __ldw_mmu(void);
-extern void __ldl_mmu(void);
-extern void __ldq_mmu(void);
-
-extern void __stb_mmu(void);
-extern void __stw_mmu(void);
-extern void __stl_mmu(void);
-extern void __stq_mmu(void);
 
+#include "../../softmmu_defs.h"
 
 static const void * const qemu_ld_helpers[4] = {
     __ldb_mmu,
index bc5694a8caec1d59bca3a895f342e03fd946e2af..183816aebbb75c6ac082d867b1979d377aba488b 100644 (file)
@@ -467,16 +467,8 @@ static void tcg_out_brcond(TCGContext *s, int cond,
 }
 
 #if defined(CONFIG_SOFTMMU)
-extern void __ldb_mmu(void);
-extern void __ldw_mmu(void);
-extern void __ldl_mmu(void);
-extern void __ldq_mmu(void);
-
-extern void __stb_mmu(void);
-extern void __stw_mmu(void);
-extern void __stl_mmu(void);
-extern void __stq_mmu(void);
 
+#include "../../softmmu_defs.h"
 
 static void *qemu_ld_helpers[4] = {
     __ldb_mmu,