mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 08:43:55 -06:00
tcg: Add TCGContext.emit_before_op
Allow operations to be emitted via normal expanders into the middle of the opcode stream. Tested-by: Jørgen Hansen <Jorgen.Hansen@wdc.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
5888357942
commit
07843f75fd
2 changed files with 18 additions and 2 deletions
|
@ -553,6 +553,12 @@ struct TCGContext {
|
|||
QTAILQ_HEAD(, TCGOp) ops, free_ops;
|
||||
QSIMPLEQ_HEAD(, TCGLabel) labels;
|
||||
|
||||
/*
|
||||
* When clear, new ops are added to the tail of @ops.
|
||||
* When set, new ops are added in front of @emit_before_op.
|
||||
*/
|
||||
TCGOp *emit_before_op;
|
||||
|
||||
/* Tells which temporary holds a given register.
|
||||
It does not take into account fixed registers */
|
||||
TCGTemp *reg_to_temp[TCG_TARGET_NB_REGS];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue