|
From: Tom H. <th...@cy...> - 2004-03-06 13:00:45
|
CVS commit by thughes:
Treat INT with an operand other than 0x80 as an undefined instruction.
CCMAIL: 768...@bu...
A none/tests/filter_int 1.1
A none/tests/int.c 1.1 [no copyright]
A none/tests/int.stderr.exp 1.1
A none/tests/int.stdout.exp 1.1
A none/tests/int.vgtest 1.1
M +1 -1 coregrind/vg_to_ucode.c 1.132
M +1 -0 none/tests/.cvsignore 1.11
M +3 -1 none/tests/Makefile.am 1.30
--- valgrind/coregrind/vg_to_ucode.c #1.131:1.132
@@ -5447,5 +5447,5 @@ static Addr disInstr ( UCodeBlock* cb, A
case 0xCD: /* INT imm8 */
d32 = getUChar(eip); eip++;
- if (d32 != 0x80) VG_(core_panic)("disInstr: INT but not 0x80 !");
+ if (d32 != 0x80) goto decode_failure;
/* It's important that all ArchRegs carry their up-to-date value
at this point. So we declare an end-of-block here, which
--- valgrind/none/tests/.cvsignore #1.10:1.11
@@ -29,4 +29,5 @@
insn_sse2
insn_sse2.c
+int
map_unmap
munmap_exe
--- valgrind/none/tests/Makefile.am #1.29:1.30
@@ -32,4 +32,5 @@
insn_sse.stderr.exp insn_sse.stdout.exp insn_sse.vgtest \
insn_sse2.stderr.exp insn_sse2.stdout.exp insn_sse2.vgtest \
+ int.stderr.exp int.stdout.exp int.vgtest \
map_unmap.stdout.exp map_unmap.vgtest \
mremap.stdout.exp mremap.vgtest \
@@ -59,5 +60,5 @@
cpuid dastest discard exec-sigmask floored fork fpu_lazy_eflags \
fucomip insn_basic insn_cmov insn_mmx insn_mmxext insn_sse insn_sse2 \
- munmap_exe map_unmap mremap rcl_assert \
+ int munmap_exe map_unmap mremap rcl_assert \
rcrl readline1 resolv seg_override sha1_test shortpush shorts smc1 \
pth_blockedsig pushpopseg \
@@ -96,4 +97,5 @@
insn_sse2_SOURCES = insn_sse2.def
insn_sse2_LDADD = -lm
+int_SOURCES = int.c
map_unmap_SOURCES = map_unmap.c
mremap_SOURCES = mremap.c
|