Re: [Qemu-devel] [PATCH] sh7750: Fix crash when accessing PVR/PRR/CVR

2013-04-09 Thread Andreas Färber
Am 08.04.2013 14:52, schrieb Peter Maydell: > On 26 March 2013 14:35, Andreas Färber wrote: >> Am 26.03.2013 13:20, schrieb Peter Maydell: >>> Commit b350ab75 causes segfaults on accesses to PVR/PRR/CVR because >>> it tries to call SUPERH_CPU_GET_CLASS() on a pointer that isn't a >>> QOM object. F

Re: [Qemu-devel] [PATCH] sh7750: Fix crash when accessing PVR/PRR/CVR

2013-04-08 Thread Peter Maydell
On 26 March 2013 14:35, Andreas Färber wrote: > Am 26.03.2013 13:20, schrieb Peter Maydell: >> Commit b350ab75 causes segfaults on accesses to PVR/PRR/CVR because >> it tries to call SUPERH_CPU_GET_CLASS() on a pointer that isn't a >> QOM object. Fix this by getting the actual QOM CPU object first

Re: [Qemu-devel] [PATCH] sh7750: Fix crash when accessing PVR/PRR/CVR

2013-03-26 Thread Peter Maydell
On 26 March 2013 14:35, Andreas Färber wrote: > Am 26.03.2013 13:20, schrieb Peter Maydell: >> Commit b350ab75 causes segfaults on accesses to PVR/PRR/CVR because >> it tries to call SUPERH_CPU_GET_CLASS() on a pointer that isn't a >> QOM object. Fix this by getting the actual QOM CPU object first

Re: [Qemu-devel] [PATCH] sh7750: Fix crash when accessing PVR/PRR/CVR

2013-03-26 Thread Andreas Färber
Am 26.03.2013 13:20, schrieb Peter Maydell: > Commit b350ab75 causes segfaults on accesses to PVR/PRR/CVR because > it tries to call SUPERH_CPU_GET_CLASS() on a pointer that isn't a > QOM object. Fix this by getting the actual QOM CPU object first. > > Signed-off-by: Peter Maydell > --- > Tested

[Qemu-devel] [PATCH] sh7750: Fix crash when accessing PVR/PRR/CVR

2013-03-26 Thread Peter Maydell
Commit b350ab75 causes segfaults on accesses to PVR/PRR/CVR because it tries to call SUPERH_CPU_GET_CLASS() on a pointer that isn't a QOM object. Fix this by getting the actual QOM CPU object first. Signed-off-by: Peter Maydell --- Tested with the r2d image/instructions from https://oss.renesas.c