aboutsummaryrefslogtreecommitdiff
path: root/target-sh4/op.c
diff options
context:
space:
mode:
authoraurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162>2008-08-29 22:32:32 +0000
committeraurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162>2008-08-29 22:32:32 +0000
commit1000822b03f44cc0b0e624cd60e5dce8dde7d463 (patch)
treea97a16fc4e61363a0dc912e063b56781b782b621 /target-sh4/op.c
parentba6a9d8cdaffda76c9a8e28dc3d7b8363b48d904 (diff)
downloadqemu-1000822b03f44cc0b0e624cd60e5dce8dde7d463.zip
qemu-1000822b03f44cc0b0e624cd60e5dce8dde7d463.tar.gz
qemu-1000822b03f44cc0b0e624cd60e5dce8dde7d463.tar.bz2
SH4: convert branch/jump instructions to TCG
(Shin-ichiro KAWASAKI) git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5111 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-sh4/op.c')
-rw-r--r--target-sh4/op.c99
1 files changed, 0 insertions, 99 deletions
diff --git a/target-sh4/op.c b/target-sh4/op.c
index 69d8e1b..687bded 100644
--- a/target-sh4/op.c
+++ b/target-sh4/op.c
@@ -37,70 +37,6 @@ static inline void cond_t(int cond)
clr_t();
}
-void OPPROTO op_bf_s(void)
-{
- env->delayed_pc = PARAM1;
- if (!(env->sr & SR_T)) {
- env->flags |= DELAY_SLOT_TRUE;
- }
- RETURN();
-}
-
-void OPPROTO op_bt_s(void)
-{
- env->delayed_pc = PARAM1;
- if (env->sr & SR_T) {
- env->flags |= DELAY_SLOT_TRUE;
- }
- RETURN();
-}
-
-void OPPROTO op_store_flags(void)
-{
- env->flags &= DELAY_SLOT_TRUE;
- env->flags |= PARAM1;
- RETURN();
-}
-
-void OPPROTO op_bra(void)
-{
- env->delayed_pc = PARAM1;
- RETURN();
-}
-
-void OPPROTO op_braf_T0(void)
-{
- env->delayed_pc = PARAM1 + T0;
- RETURN();
-}
-
-void OPPROTO op_bsr(void)
-{
- env->pr = PARAM1;
- env->delayed_pc = PARAM2;
- RETURN();
-}
-
-void OPPROTO op_bsrf_T0(void)
-{
- env->pr = PARAM1;
- env->delayed_pc = PARAM1 + T0;
- RETURN();
-}
-
-void OPPROTO op_jsr_T0(void)
-{
- env->pr = PARAM1;
- env->delayed_pc = T0;
- RETURN();
-}
-
-void OPPROTO op_rts(void)
-{
- env->delayed_pc = env->pr;
- RETURN();
-}
-
void OPPROTO op_ldtlb(void)
{
helper_ldtlb();
@@ -119,13 +55,6 @@ void OPPROTO op_fschg(void)
RETURN();
}
-void OPPROTO op_rte(void)
-{
- env->sr = env->ssr;
- env->delayed_pc = env->spc;
- RETURN();
-}
-
void OPPROTO op_addc_T0_T1(void)
{
helper_addc_T0_T1();
@@ -257,12 +186,6 @@ void OPPROTO op_trapa(void)
RETURN();
}
-void OPPROTO op_jmp_T0(void)
-{
- env->delayed_pc = T0;
- RETURN();
-}
-
void OPPROTO op_ldcl_rMplus_rN_bank(void)
{
env->gregs[PARAM2] = env->gregs[PARAM1];
@@ -568,28 +491,6 @@ void OPPROTO op_movl_FT0_fpul(void)
RETURN();
}
-void OPPROTO op_jT(void)
-{
- if (env->sr & SR_T)
- GOTO_LABEL_PARAM(1);
- RETURN();
-}
-
-void OPPROTO op_jdelayed(void)
-{
- if (env->flags & DELAY_SLOT_TRUE) {
- env->flags &= ~DELAY_SLOT_TRUE;
- GOTO_LABEL_PARAM(1);
- }
- RETURN();
-}
-
-void OPPROTO op_movl_delayed_pc_PC(void)
-{
- env->pc = env->delayed_pc;
- RETURN();
-}
-
void OPPROTO op_raise_illegal_instruction(void)
{
env->exception_index = 0x180;