diff options
author | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-05-21 16:34:06 +0000 |
---|---|---|
committer | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-05-21 16:34:06 +0000 |
commit | 3bd7da9e1851f024919c07eba4c29acf209ecd6e (patch) | |
tree | ff29adc10afaaa64727ae8141b6826fe4df8fad9 /target-i386/op.c | |
parent | cec6843e87fe29d8419fd5a9ed9912729c068656 (diff) | |
download | qemu-3bd7da9e1851f024919c07eba4c29acf209ecd6e.zip qemu-3bd7da9e1851f024919c07eba4c29acf209ecd6e.tar.gz qemu-3bd7da9e1851f024919c07eba4c29acf209ecd6e.tar.bz2 |
convert remaining segment handling to TCG
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4514 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-i386/op.c')
-rw-r--r-- | target-i386/op.c | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/target-i386/op.c b/target-i386/op.c index d637423..0a0532c 100644 --- a/target-i386/op.c +++ b/target-i386/op.c @@ -147,45 +147,6 @@ #endif -/* segment handling */ - -/* faster VM86 version */ -void OPPROTO op_movl_seg_T0_vm(void) -{ - int selector; - SegmentCache *sc; - - selector = T0 & 0xffff; - /* env->segs[] access */ - sc = (SegmentCache *)((char *)env + PARAM1); - sc->selector = selector; - sc->base = (selector << 4); -} - -void OPPROTO op_movl_T0_seg(void) -{ - T0 = env->segs[PARAM1].selector; -} - -void OPPROTO op_arpl(void) -{ - if ((T0 & 3) < (T1 & 3)) { - /* XXX: emulate bug or 0xff3f0000 oring as in bochs ? */ - T0 = (T0 & ~3) | (T1 & 3); - T1 = CC_Z; - } else { - T1 = 0; - } - FORCE_RET(); -} - -void OPPROTO op_arpl_update(void) -{ - int eflags; - eflags = cc_table[CC_OP].compute_all(); - CC_SRC = (eflags & ~CC_Z) | T1; -} - void OPPROTO op_movl_T0_env(void) { T0 = *(uint32_t *)((char *)env + PARAM1); |