qemu/target/sparc/translate.h
Philippe Mathieu-Daudé fc3630b2a9 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]
2024-12-20 17:44:57 +01:00

17 lines
425 B
C

/*
* QEMU translation definitions for SPARC
*
* Copyright (c) 2024 Linaro, Ltd
* SPDX-License-Identifier: GPL-2.0-or-later
*/
#ifndef SPARC_TRANSLATION_H
#define SPARC_TRANSLATION_H
/* Dynamic PC, must exit to main loop. */
#define DYNAMIC_PC 1
/* Dynamic PC, one of two values according to jump_pc[T2]. */
#define JUMP_PC 2
/* Dynamic PC, may lookup next TB. */
#define DYNAMIC_PC_LOOKUP 3
#endif