qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH qom-cpu for-1.4] target-openrisc: Clean up tripl


From: Andreas Färber
Subject: Re: [Qemu-devel] [PATCH qom-cpu for-1.4] target-openrisc: Clean up triple QOM casts
Date: Wed, 23 Jan 2013 16:52:46 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130105 Thunderbird/17.0.2

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 <address@hidden>
> ---
>  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

[Prev in Thread] Current Thread [Next in Thread]