diff options
author | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2004-01-04 23:49:41 +0000 |
---|---|---|
committer | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2004-01-04 23:49:41 +0000 |
commit | 09683d35974f3d91cf018deed20346d255deae9b (patch) | |
tree | 8d4cec44ae28be44e886a89b426c9e45ca1ba0b6 /cpu-all.h | |
parent | 590b7eed184838bc95710813fb5ceddffa43fe8d (diff) |
changed cpu_x86_in/out to cpu_in/out
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@532 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'cpu-all.h')
-rw-r--r-- | cpu-all.h | 17 |
1 files changed, 17 insertions, 0 deletions
@@ -420,6 +420,7 @@ void page_unprotect_range(uint8_t *data, unsigned long data_size); #define cpu_gen_code cpu_x86_gen_code #define cpu_interrupt cpu_x86_interrupt #define cpu_signal_handler cpu_x86_signal_handler +#define cpu_dump_state cpu_x86_dump_state #elif defined(TARGET_ARM) @@ -429,6 +430,7 @@ void page_unprotect_range(uint8_t *data, unsigned long data_size); #define cpu_gen_code cpu_arm_gen_code #define cpu_interrupt cpu_arm_interrupt #define cpu_signal_handler cpu_arm_signal_handler +#define cpu_dump_state cpu_arm_dump_state #elif defined(TARGET_SPARC) @@ -438,6 +440,7 @@ void page_unprotect_range(uint8_t *data, unsigned long data_size); #define cpu_gen_code cpu_sparc_gen_code #define cpu_interrupt cpu_sparc_interrupt #define cpu_signal_handler cpu_sparc_signal_handler +#define cpu_dump_state cpu_sparc_dump_state #elif defined(TARGET_PPC) @@ -447,6 +450,7 @@ void page_unprotect_range(uint8_t *data, unsigned long data_size); #define cpu_gen_code cpu_ppc_gen_code #define cpu_interrupt cpu_ppc_interrupt #define cpu_signal_handler cpu_ppc_signal_handler +#define cpu_dump_state cpu_ppc_dump_state #else @@ -473,6 +477,19 @@ void cpu_single_step(CPUState *env, int enabled); void cpu_set_log(int log_flags); void cpu_set_log_filename(const char *filename); +/* IO ports API */ + +/* NOTE: as these functions may be even used when there is an isa + brige on non x86 targets, we always defined them */ +#ifndef NO_CPU_IO_DEFS +void cpu_outb(CPUState *env, int addr, int val); +void cpu_outw(CPUState *env, int addr, int val); +void cpu_outl(CPUState *env, int addr, int val); +int cpu_inb(CPUState *env, int addr); +int cpu_inw(CPUState *env, int addr); +int cpu_inl(CPUState *env, int addr); +#endif + /* memory API */ extern int phys_ram_size; |