mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-01 06:43:53 -06:00

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]
17 lines
425 B
C
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
|