Re: [Qemu-devel] [PATCHv2 05/13] unicore32-softmmu: Make sure that kernel can access user space

2012-06-17 Thread Guan Xuetao
On Fri, 2012-06-15 at 18:01 +0800, 陳韋任 (Wei-Ren Chen) wrote: > Hi Guan, > > > /* These instructions trap after executing, so defer them until after the > > conditional executions state has been updated. */ > > @@ -1551,12 +1558,12 @@ static void do_misc(CPUUniCore32State *env, > > DisasCont

[Qemu-devel] [PATCHv2 05/13] unicore32-softmmu: Make sure that kernel can access user space

2012-06-15 Thread Guan Xuetao
As a matter of course, we need to access user space in kernel code, so we need to correct load/store decoders to indicate correct memory region. Signed-off-by: Guan Xuetao --- target-unicore32/translate.c | 36 ++-- 1 files changed, 26 insertions(+), 10 deletion

Re: [Qemu-devel] [PATCHv2 05/13] unicore32-softmmu: Make sure that kernel can access user space

2012-06-15 Thread Wei-Ren Chen
Hi Guan, > /* These instructions trap after executing, so defer them until after the > conditional executions state has been updated. */ > @@ -1551,12 +1558,12 @@ static void do_misc(CPUUniCore32State *env, > DisasContext *s, uint32_t insn) > /* load/store I_offset and R_offset */ > stati