Re: [Qemu-devel] [PATCH v2] target-tilegx: Support iret instruction and related special registers

2015-10-01 Thread Chen Gang
Oh, sorry, according to the architecture member's reply, this patch is incorrect. I shall implement iret as "jrp lr". Thanks. On 10/1/15 19:01, gang.chen.5...@gmail.com wrote: > From: Chen Gang > > Acording to the __longjmp tilegx libc implementation, and reference from > tilegx ISA document, w

[Qemu-devel] [PATCH v2] target-tilegx: Support iret instruction and related special registers

2015-10-01 Thread gang . chen . 5i5j
From: Chen Gang Acording to the __longjmp tilegx libc implementation, and reference from tilegx ISA document, we can left iret instruction empty. The related code is below: ENTRY (__longjmp) FEEDBACK_ENTER(__longjmp) #define RESTORE(r) { LD r, r0 ; ADDI_PTR r0, r0, REGSIZE }