mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 01:33:56 -06:00
target: Replace CPU_GET_CLASS(cpu -> obj) in cpu_reset_hold() handler
Since CPU() macro is a simple cast, the following are equivalent: Object *obj; CPUState *cs = CPU(obj) In order to ease static analysis when running scripts/coccinelle/cpu_env.cocci from the previous commit, replace: - CPU_GET_CLASS(cpu); + CPU_GET_CLASS(obj); Most code use the 'cs' variable name for CPUState handle. Replace few 's' -> 'cs' to unify cpu_reset_hold() style. No logical change in this patch. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Acked-by: Richard Henderson <richard.henderson@linaro.org> Message-ID: <20240129164514.73104-7-philmd@linaro.org> Signed-off-by: Thomas Huth <thuth@redhat.com>
This commit is contained in:
parent
94956d7b51
commit
348802b526
18 changed files with 51 additions and 51 deletions
|
@ -73,9 +73,9 @@ static void m68k_unset_feature(CPUM68KState *env, int feature)
|
|||
|
||||
static void m68k_cpu_reset_hold(Object *obj)
|
||||
{
|
||||
CPUState *s = CPU(obj);
|
||||
M68kCPU *cpu = M68K_CPU(s);
|
||||
M68kCPUClass *mcc = M68K_CPU_GET_CLASS(cpu);
|
||||
CPUState *cs = CPU(obj);
|
||||
M68kCPU *cpu = M68K_CPU(cs);
|
||||
M68kCPUClass *mcc = M68K_CPU_GET_CLASS(obj);
|
||||
CPUM68KState *env = &cpu->env;
|
||||
floatx80 nan = floatx80_default_nan(NULL);
|
||||
int i;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue