Browse Source
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]pull/318/head
4 changed files with 42 additions and 34 deletions
@ -0,0 +1,17 @@ |
|||
/*
|
|||
* 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 |
|||
Loading…
Reference in new issue