diff options
author | edgar_igl <edgar_igl@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-05-27 21:10:56 +0000 |
---|---|---|
committer | edgar_igl <edgar_igl@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-05-27 21:10:56 +0000 |
commit | 30abcfc7babe4bde680e1a04a1a6d0f1c041cc29 (patch) | |
tree | 4ee2139a9bad1d0571a4750f33b5d9381d8babeb /target-cris/cpu.h | |
parent | 9bcd77d6b1815db0716b56a605806ba2d2101656 (diff) |
CRIS: Restructure the translator to allow for better code generation.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4594 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-cris/cpu.h')
-rw-r--r-- | target-cris/cpu.h | 39 |
1 files changed, 1 insertions, 38 deletions
diff --git a/target-cris/cpu.h b/target-cris/cpu.h index a26dd80364..ffcf3c02e9 100644 --- a/target-cris/cpu.h +++ b/target-cris/cpu.h @@ -120,8 +120,7 @@ typedef struct CPUCRISState { uint32_t cc_result; /* size of the operation, 1 = byte, 2 = word, 4 = dword. */ int cc_size; - /* Extended arithmetics. */ - int cc_x_live; + /* X flag at the time of cc snapshot. */ int cc_x; int exception_index; @@ -130,10 +129,6 @@ typedef struct CPUCRISState { int fault_vector; int trap_vector; - uint32_t debug1; - uint32_t debug2; - uint32_t debug3; - /* FIXME: add a check in the translator to avoid writing to support register sets beyond the 4th. The ISA allows up to 256! but in practice there is no core that implements more than 4. @@ -177,20 +172,14 @@ void do_interrupt(CPUCRISState *env); is returned if the signal was handled by the virtual CPU. */ int cpu_cris_signal_handler(int host_signum, void *pinfo, void *puc); -void cpu_cris_flush_flags(CPUCRISState *, int); - - void do_unassigned_access(target_phys_addr_t addr, int is_write, int is_exec, int is_asi); enum { CC_OP_DYNAMIC, /* Use env->cc_op */ CC_OP_FLAGS, - CC_OP_LOGIC, CC_OP_CMP, CC_OP_MOVE, - CC_OP_MOVE_PD, - CC_OP_MOVE_SD, CC_OP_ADD, CC_OP_ADDC, CC_OP_MCP, @@ -213,32 +202,6 @@ enum { CC_OP_LZ }; -#define CCF_C 0x01 -#define CCF_V 0x02 -#define CCF_Z 0x04 -#define CCF_N 0x08 -#define CCF_X 0x10 - -#define CRIS_SSP 0 -#define CRIS_USP 1 - -void cris_set_irq_level(CPUCRISState *env, int level, uint8_t vector); -void cris_set_macsr(CPUCRISState *env, uint32_t val); -void cris_switch_sp(CPUCRISState *env); - -void do_cris_semihosting(CPUCRISState *env, int nr); - -enum cris_features { - CRIS_FEATURE_CF_ISA_MUL, -}; - -static inline int cris_feature(CPUCRISState *env, int feature) -{ - return (env->features & (1u << feature)) != 0; -} - -void register_cris_insns (CPUCRISState *env); - /* CRIS uses 8k pages. */ #define TARGET_PAGE_BITS 13 #define MMAP_SHIFT TARGET_PAGE_BITS |