]> git.ipfire.org Git - thirdparty/qemu.git/commit
memory: inline some performance-sensitive accessors
authorPaolo Bonzini <pbonzini@redhat.com>
Sun, 4 Mar 2018 23:31:20 +0000 (00:31 +0100)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Thu, 21 Jun 2018 01:44:59 +0000 (20:44 -0500)
commitac25a3257ffcf563ffb47f5c4a6b2b2804bea9d0
tree18402f3a21d39a4cd6028cf0f09509f58932846c
parent8e8b73992c18f7a4b9aba80eca791b9c1c0267d8
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>
(cherry picked from commit 785a507ec78bbda1c346f3d3593e5a58b62e73ef)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
include/exec/memory-internal.h
include/exec/memory.h
memory.c