]> git.ipfire.org Git - thirdparty/qemu.git/commit
target/sparc: Move sparc_restore_state_to_opc() to cpu.c
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Fri, 15 Nov 2024 10:03:46 +0000 (11:03 +0100)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Fri, 20 Dec 2024 16:44:57 +0000 (17:44 +0100)
commitfc3630b2a9d17c7bc7cfd03a15cf91d7fdd26355
treefdaeef455fb19bcb92b7980e76db07431d1577ba
parent32cf0ac2ccef1182705531a5383d432b3c76d995
target/sparc: Move sparc_restore_state_to_opc() to cpu.c

Most targets define their restore_state_to_opc() handler in cpu.c.
In order to keep SPARC aligned, move sparc_restore_state_to_opc()
from translate.c to cpu.c.

Suggested-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Message-Id: <20241115152053.66442-4-philmd@linaro.org>
[PMD: Move definitions to new target/sparc/translate.h]
target/sparc/cpu.c
target/sparc/cpu.h
target/sparc/translate.c
target/sparc/translate.h [new file with mode: 0644]