[Qemu-devel] [PATCH] linux-user: Check type of microMIPS break instruction

2013-09-09 Thread Kwok Cheung Yeung
-off-by: Kwok Cheung Yeung --- linux-user/main.c | 56 ++- 1 file changed, 35 insertions(+), 21 deletions(-) diff --git a/linux-user/main.c b/linux-user/main.c index 5c2f7b2..8eaf33a 100644 --- a/linux-user/main.c +++ b/linux-user/main.c

[Qemu-devel] [PATCH v3] linux-user: Handle compressed ISA encodings when processing MIPS exceptions

2013-07-19 Thread Kwok Cheung Yeung
Decode trap instructions during the handling of an EXCP_BREAK or EXCP_TRAP according to the current ISA mode. Signed-off-by: Kwok Cheung Yeung --- linux-user/main.c | 46 +++--- 1 file changed, 43 insertions(+), 3 deletions(-) v2->v3: Handle microM

[Qemu-devel] [PATCH v2] linux-user: Handle microMIPS encoding when processing trap exceptions

2013-07-19 Thread Kwok Cheung Yeung
Decode trap instructions during the handling of an EXCP_TRAP according to the current ISA mode. Signed-off-by: Kwok Cheung Yeung --- linux-user/main.c | 20 ++-- 1 file changed, 18 insertions(+), 2 deletions(-) v2: Read microMIPS instructions sequentially as 16-bit values to

Re: [Qemu-devel] [PATCH v2] linux-user: Handle microMIPS encoding when processing trap exceptions

2013-07-19 Thread Kwok Cheung Yeung
On 19/07/2013 3:52 PM, Peter Maydell wrote: On 19 July 2013 15:47, Kwok Cheung Yeung wrote: Decode trap instructions during the handling of an EXCP_TRAP according to the current ISA mode. Signed-off-by: Kwok Cheung Yeung --- linux-user/main.c | 20 ++-- 1 file changed, 18

[Qemu-devel] [PATCH] linux-user: Handle microMIPS encoding when processing trap exceptions

2013-07-17 Thread Kwok Cheung Yeung
Decode trap instructions during the handling of a EXCP_TRAP according to the current ISA mode. Signed-off-by: Kwok Cheung Yeung --- linux-user/main.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/linux-user/main.c b/linux-user/main.c index 7f15d3d..c417e26 100644 --- a

[Qemu-devel] [PATCH v2 1/2] linux-user: Fix MIPS ISA transitions during signal handling

2013-05-17 Thread Kwok Cheung Yeung
or set accordingly. Bit 0 of the PC is then cleared. Signed-off-by: Kwok Cheung Yeung --- linux-user/signal.c | 13 + 1 file changed, 13 insertions(+) diff --git a/linux-user/signal.c b/linux-user/signal.c index 1055507..dc34ae7 100644 --- a/linux-user/signal.c +++ b/linux-user

[Qemu-devel] [PATCH v2 2/2] linux-user: Save the correct resume address for MIPS signal handling

2013-05-17 Thread Kwok Cheung Yeung
reused. MIPS_HFLAG_BMASK in hflags is cleared, otherwise QEMU may treat the first instruction of the signal handler as a delay slot instruction. Signed-off-by: Kwok Cheung Yeung --- linux-user/signal.c | 3 ++- target-mips/cpu.h| 1 + target-mips/helper.c | 4 ++-- 3 files changed, 5

[Qemu-devel] [PATCH v2 0/2] linux-user: Fix MIPS16/microMIPS signal handling

2013-05-17 Thread Kwok Cheung Yeung
Add fixes for signal return and delay slot instructions - Refactor code Kwok Cheung Yeung (2): linux-user: Fix MIPS ISA transitions during signal handling linux-user: Save the correct resume address for MIPS signal handling linux-user/signal.c | 16 +++- target-mips/cpu.h|

[Qemu-devel] [PATCH] linux-user: Fix MIPS16/microMIPS signal handling

2013-04-30 Thread Kwok Cheung Yeung
: Kwok Cheung Yeung --- linux-user/signal.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/linux-user/signal.c b/linux-user/signal.c index 1055507..abfb382 100644 --- a/linux-user/signal.c +++ b/linux-user/signal.c @@ -2662,6 +2662,11 @@ static void setup_frame(int sig, struct

[Qemu-devel] [PATCH] linux-user: Fix MIPS16/microMIPS signal handling

2013-04-30 Thread Kwok Cheung Yeung
: Kwok Cheung Yeung --- linux-user/signal.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/linux-user/signal.c b/linux-user/signal.c index 1055507..abfb382 100644 --- a/linux-user/signal.c +++ b/linux-user/signal.c @@ -2662,6 +2662,11 @@ static void setup_frame(int sig, struct