[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v2 01/16] target-s390x: fix exception for invalid op
From: |
Aurelien Jarno |
Subject: |
[Qemu-devel] [PATCH v2 01/16] target-s390x: fix exception for invalid operation code |
Date: |
Wed, 3 Jun 2015 23:09:41 +0200 |
When an operation code is not recognized (ie invalid instruction) an
operation exception should be generated instead of a specification
exception. The latter is for valid opcode, with invalid operands or
modifiers.
This give a very basic GDB support in the guest, as it uses the invalid
opcode 0x0001 to generate a trap.
Cc: Alexander Graf <address@hidden>
Reviewed-by: Richard Henderson <address@hidden>
Signed-off-by: Aurelien Jarno <address@hidden>
---
target-s390x/translate.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/target-s390x/translate.c b/target-s390x/translate.c
index d508bc2..c7ebd21 100644
--- a/target-s390x/translate.c
+++ b/target-s390x/translate.c
@@ -320,7 +320,7 @@ static void gen_program_exception(DisasContext *s, int code)
static inline void gen_illegal_opcode(DisasContext *s)
{
- gen_program_exception(s, PGM_SPECIFICATION);
+ gen_program_exception(s, PGM_OPERATION);
}
#ifndef CONFIG_USER_ONLY
--
2.1.4
- [Qemu-devel] [PATCH v2 10/16] target-s390x: implement miscellaneous-instruction-extensions facility, (continued)
- [Qemu-devel] [PATCH v2 10/16] target-s390x: implement miscellaneous-instruction-extensions facility, Aurelien Jarno, 2015/06/03
- [Qemu-devel] [PATCH v2 15/16] target-s390x: use softmmu functions for mvcp/mvcs, Aurelien Jarno, 2015/06/03
- [Qemu-devel] [PATCH v2 08/16] target-s390x: implement TRANSLATE EXTENDED instruction, Aurelien Jarno, 2015/06/03
- [Qemu-devel] [PATCH v2 16/16] target-s390x: fix MVC instruction when areas overlap, Aurelien Jarno, 2015/06/03
- [Qemu-devel] [PATCH v2 06/16] target-s390x: implement LOAD FP INTEGER instructions, Aurelien Jarno, 2015/06/03
- [Qemu-devel] [PATCH v2 11/16] target-s390x: implement load-and-trap facility, Aurelien Jarno, 2015/06/03
- [Qemu-devel] [PATCH v2 01/16] target-s390x: fix exception for invalid operation code,
Aurelien Jarno <=
- [Qemu-devel] [PATCH v2 12/16] target-s390x: implement high-word facility, Aurelien Jarno, 2015/06/03
- [Qemu-devel] [PATCH v2 09/16] target-s390x: implement LPDFR and LNDFR instructions, Aurelien Jarno, 2015/06/03
- Re: [Qemu-devel] [PATCH v2 00/16] fixes and improvements, Alexander Graf, 2015/06/03