Re: [Qemu-devel] [PATCH] target-or32: Improve float exception

2012-11-22 Thread Peter Maydell
On 22 November 2012 18:45, 陳韋任 (Wei-Ren Chen) wrote: >> > +void QEMU_NORETURN do_raise_exception_err(OpenRISCCPU *cpu, >> > + uint32_t exception, >> > + uintptr_t pc) >> > +{ >> > +TranslationBlock *tb; >> > +#if

Re: [Qemu-devel] [PATCH] target-or32: Improve float exception

2012-11-22 Thread Wei-Ren Chen
> > +void QEMU_NORETURN do_raise_exception_err(OpenRISCCPU *cpu, > > + uint32_t exception, > > + uintptr_t pc) > > +{ > > +TranslationBlock *tb; > > +#if 1 > > +if (exception < 0x100) > > +qemu_log("%s

Re: [Qemu-devel] [PATCH] target-or32: Improve float exception

2012-11-22 Thread Wei-Ren Chen
> -void QEMU_NORETURN raise_exception(OpenRISCCPU *cpu, uint32_t excp) > +void QEMU_NORETURN raise_exception(OpenRISCCPU *cpu, uint32_t exception) > { > -cpu->env.exception_index = excp; > +do_raise_exception_err(cpu, exception, 0); > +} > + > +void QEMU_NORETURN do_raise_exception_err(Ope

Re: [Qemu-devel] [PATCH] target-or32: Improve float exception

2012-11-22 Thread Peter Maydell
On 22 November 2012 02:10, Feng Gao wrote: > From: gaofeng This doesn't look like a valid From line... > When float exception raise, can save right pc. > > Signed-off-by: Feng Gao > --- > target-openrisc/exception.c | 35 -- > target-openrisc/exception.h |8

[Qemu-devel] [PATCH] target-or32: Improve float exception

2012-11-22 Thread Feng Gao
From: gaofeng When float exception raise, can save right pc. Signed-off-by: Feng Gao --- target-openrisc/exception.c | 35 -- target-openrisc/exception.h |8 ++- target-openrisc/fpu_helper.c | 48 +++--- target-openr