commit | 785a507ec78bbda1c346f3d3593e5a58b62e73ef | [log] [tgz] |
---|---|---|
author | Paolo Bonzini <pbonzini@redhat.com> | Mon Mar 05 00:31:20 2018 +0100 |
committer | Paolo Bonzini <pbonzini@redhat.com> | Tue Mar 06 14:01:27 2018 +0100 |
tree | ae204064aeadb7e998d606cd41c1484e47636a6c | |
parent | 80d2b933f9fe3e53d4f76a45a1bc1a0175669468 [diff] |
memory: inline some performance-sensitive accessors These accessors are called from inlined functions, and the call sequence is much more expensive than just inlining the access. Move the struct declaration to memory-internal.h so that exec.c and memory.c can both use an inline function. Reviewed-by: Alexey Kardashevskiy <aik@ozlabs.ru> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>