diff options
| author | Philippe Mathieu-Daudé <philmd@linaro.org> | 2024-01-30 11:12:16 +0100 |
|---|---|---|
| committer | Philippe Mathieu-Daudé <philmd@linaro.org> | 2024-02-15 16:58:46 +0100 |
| commit | c90e6e37083a7ca3b53838429591196db31fec0e (patch) | |
| tree | 6616f50472f3f05efd0326c9a1e91bb977d10be8 /hw/sparc/leon3.c | |
| parent | d08b7af3f7f27f6f3da8446756bf0b9352026b1d (diff) | |
| download | focaccia-qemu-c90e6e37083a7ca3b53838429591196db31fec0e.tar.gz focaccia-qemu-c90e6e37083a7ca3b53838429591196db31fec0e.zip | |
hw/sparc/leon3: Remove duplicate code
Since commit b04d989054 ("SPARC: Emulation of Leon3") the
main_cpu_reset() handler sets both pc/npc when the CPU is
reset, after the machine is realized. It is pointless to
set it in leon3_generic_hw_init().
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Clément Chigot <chigot@adacore.com>
Message-Id: <20240130113102.6732-3-philmd@linaro.org>
Diffstat (limited to 'hw/sparc/leon3.c')
| -rw-r--r-- | hw/sparc/leon3.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/hw/sparc/leon3.c b/hw/sparc/leon3.c index 2dfb742566..1ae9a37583 100644 --- a/hw/sparc/leon3.c +++ b/hw/sparc/leon3.c @@ -343,8 +343,6 @@ static void leon3_generic_hw_init(MachineState *machine) bootloader_entry = memory_region_get_ram_ptr(prom); write_bootloader(env, bootloader_entry, entry); - env->pc = LEON3_PROM_OFFSET; - env->npc = LEON3_PROM_OFFSET + 4; reset_info->entry = LEON3_PROM_OFFSET; } } |