mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-01 23:03:54 -06:00
accel/tcg: Track current value of can_do_io in the TB
Simplify translator_io_start by recording the current known value of can_do_io within DisasContextBase. Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
5d97e94638
commit
0ca41ccf1c
2 changed files with 16 additions and 17 deletions
|
@ -72,6 +72,7 @@ typedef enum DisasJumpType {
|
|||
* @num_insns: Number of translated instructions (including current).
|
||||
* @max_insns: Maximum number of instructions to be translated in this TB.
|
||||
* @singlestep_enabled: "Hardware" single stepping enabled.
|
||||
* @saved_can_do_io: Known value of cpu->neg.can_do_io, or -1 for unknown.
|
||||
*
|
||||
* Architecture-agnostic disassembly context.
|
||||
*/
|
||||
|
@ -83,6 +84,7 @@ typedef struct DisasContextBase {
|
|||
int num_insns;
|
||||
int max_insns;
|
||||
bool singlestep_enabled;
|
||||
int8_t saved_can_do_io;
|
||||
void *host_addr[2];
|
||||
} DisasContextBase;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue