changeset f24733876990 in /z/repo/m5
details: http://repo.m5sim.org/m5?cmd=changeset;node=f24733876990
description:
        X86: Implement the int system call interface in the decoder.

diffstat:

1 file changed, 11 insertions(+)
src/arch/x86/isa/decoder/one_byte_opcodes.isa |   11 +++++++++++

diffs (22 lines):

diff -r a49d9413a9e8 -r f24733876990 
src/arch/x86/isa/decoder/one_byte_opcodes.isa
--- a/src/arch/x86/isa/decoder/one_byte_opcodes.isa     Fri Feb 27 09:21:36 
2009 -0800
+++ b/src/arch/x86/isa/decoder/one_byte_opcodes.isa     Fri Feb 27 09:21:58 
2009 -0800
@@ -418,7 +418,18 @@
                     default: Inst::RET_FAR();
                 }
                 0x4: int3();
+#if FULL_SYSTEM
                 0x5: int_Ib();
+#else
+                // Really only the LSB matters, but the predecoder will sign
+                // extend it, and there's no easy way to specify only checking
+                // the first byte.
+                0x5: decode IMMEDIATE {
+                    0xffffffffffffff80:
+                         SyscallInst::int80('xc->syscall(Rax)', IsSyscall);
+                    default: int_Ib();
+                }
+#endif
                 0x6: decode MODE_SUBMODE {
                     0x0: Inst::UD2();
                     default: into();
_______________________________________________
m5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/m5-dev

Reply via email to