]> www.infradead.org Git - users/dwmw2/qemu.git/commit
hw/rx/rx-gdbsim: Remove unnecessary uses of &first_cpu
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Fri, 10 Jan 2025 18:01:31 +0000 (19:01 +0100)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Fri, 31 Jan 2025 18:05:38 +0000 (19:05 +0100)
commitdc21331e67486782dc573285061fbeedce219c64
tree51f94a0c2bb4248ff1c680380a2fead8b3ca97b4
parent871af84dd599fab68c8ed414d9ecbdb2bcfc5801
hw/rx/rx-gdbsim: Remove unnecessary uses of &first_cpu

rx_gdbsim_init() has access to the single CPU via:

  RxGdbSimMachineState {
    RX62NState {
      RXCPU cpu;
      ...
    } mcu;
  } s;

Directly use that instead of the &first_cpu global.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20250110180442.82687-1-philmd@linaro.org>
hw/rx/rx-gdbsim.c