QOM CPUState patch queue 2014-03-19 #2
Hello Peter,
This is my current QOM CPU patch queue. Please pull.
Regards,
Andreas
The following changes since commit f71e769d0754dc9a593a9e17ec6693a261b29f82:
Merge remote-tracking branch 'remotes/afaerber/tags/qom-cpu-for-2.0' into staging (2014-03-19 19:05:13 +0000)
are available in the git repository at:
git://github.com/afaerber/qemu-cpu.git tags/qom-cpu-for-2.0
for you to fetch changes up to 7e4fb26d757b460de5b80b4220bcd926f7175cb2:
cpu: Move tcg_exit_req to the end of CPUState (2014-03-19 22:11:19 +0100)
----------------------------------------------------------------
QOM CPUState refactorings / X86CPU
* CPUState layout optimization for TCG
----------------------------------------------------------------
Richard Henderson (1):
cpu: Move tcg_exit_req to the end of CPUState
include/qom/cpu.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)
[Qemu-devel] [PULL for-2.0 1/1] cpu: Move tcg_exit_req to the end of CPUState
From: Richard Henderson <[email protected]>
Reverse an increase in the size of generated code.
--- include/qom/cpu.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)
include/qom/cpu.h +6 -1
@@ -227,7 +227,6 @@ struct CPUState {bool stop;bool stopped;volatile sig_atomic_t exit_request; -volatile sig_atomic_t tcg_exit_req;uint32_t interrupt_request;int singlestep_enabled;int64_t icount_extra;
@@ -272,6 +271,12 @@ struct CPUState { } icount_decr;uint32_t can_do_io;int32_t exception_index;/* used by m68k TCG */ + +/* Note that this is accessed at the start of every TB via a negative +offset from AREG0. Leave this field at the end so as to make the +(absolute value) offset as small as possible. This reduces code +size, especially for hosts without large memory offsets. */ +volatile sig_atomic_t tcg_exit_req; };QTAILQ_HEAD (CPUTailQ, CPUState);
Signature · 1 line
1.8.4.5
Peter Maydell
AppliedQuoted 14 lines · Andreas Färber
Hello Peter,
This is my current QOM CPU patch queue. Please pull.
Regards,
AndreasCc Peter Maydell <[email protected]>Cc Anthony Liguori <[email protected]>The following changes since commit
f71e769d0754dc9a593a9e17ec6693a261b29f82:Merge remote-tracking branch 'remotes/afaerber/tags/qom-cpu-for-2.0' into staging (2014-03-19 19:05:13 +0000)
Quoted 8 lines
are available in the git repository at:
git://github.com/afaerber/qemu-cpu.gittags/qom-cpu-for-2.0for you to fetch changes up to
7e4fb26d757b460de5b80b4220bcd926f7175cb2:cpu: Move
tcg_exit_reqto the end of CPUState (2014-03-19 22:11:19 +0100)
Applied, thanks.
-- PMM