|
From: | Paolo Bonzini |
Subject: | Re: [Qemu-devel] [PATCH for-2.0] cpu: do not use QOM casts in ENV_GET_CPU |
Date: | Fri, 28 Mar 2014 15:56:27 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 |
Il 28/03/2014 15:52, Andreas Färber ha scritto:
I do wonder if it wouldn't make more sense to simply #define CPU(obj) ((CPUState *)obj) which would catch all uses of CPU() while still allowing to change it to #define CPU(obj) dynamic_cast<CPUState>(obj) or so in the future without touching dozens of places. We can obviously also take this patch here for 2.0 and then revert and redo differently.
I suggest doing a C-cast patch for 2.0, and then possibly revert and redo differently in 2.1.
[Prev in Thread] | Current Thread | [Next in Thread] |