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

2013-01-23 Thread Andreas Färber
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 co

[Qemu-devel] [PATCH qom-cpu for-1.4] target-openrisc: Clean up triple QOM casts

2013-01-19 Thread 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 --- target-op