Am 20.01.2013 03:43, schrieb Andreas Färber:
> Instead of calling openrisc_env_get_cpu(), casting to CPU() via the
> ENV_GET_CPU() compatibility macro and casting back to OPENRISC_CPU(),
> just call openrisc_env_get_cpu() directly.
> 
> ENV_GET_CPU() is meant as workaround for target-independent code only.
> 
> Signed-off-by: Andreas Färber <afaer...@suse.de>
> ---
>  target-openrisc/exception_helper.c |    2 +-
>  target-openrisc/fpu_helper.c       |   32 ++++++++++++++++----------------
>  target-openrisc/int_helper.c       |    2 +-
>  target-openrisc/interrupt_helper.c |    2 +-
>  target-openrisc/mmu.c              |    6 +++---
>  target-openrisc/sys_helper.c       |    4 ++--
>  6 Dateien geändert, 24 Zeilen hinzugefügt(+), 24 Zeilen entfernt(-)

Applying this to qom-cpu:
https://github.com/afaerber/qemu-cpu/commits/qom-cpu

Andreas

-- 
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg

Reply via email to