aboutsummaryrefslogtreecommitdiff
path: root/qemu-keymap.c
diff options
context:
space:
mode:
authorRichard Henderson <richard.henderson@linaro.org>2020-01-23 13:22:47 -1000
committerCornelia Huck <cohuck@redhat.com>2020-01-27 12:13:10 +0100
commit344a7f656e8d211cdd6e248a0644612f386ef8ea (patch)
tree9708695f34e8e6ce32b88f0b9da8776a163b6e60 /qemu-keymap.c
parentc30988d15bd6454b2e38f2e67d850f6450130da3 (diff)
downloadqemu-344a7f656e8d211cdd6e248a0644612f386ef8ea.zip
qemu-344a7f656e8d211cdd6e248a0644612f386ef8ea.tar.gz
qemu-344a7f656e8d211cdd6e248a0644612f386ef8ea.tar.bz2
target/s390x: Move DisasFields into DisasContext
I believe that the separate allocation of DisasFields from DisasContext was meant to limit the places from which we could access fields. But that plan did not go unchanged, and since DisasContext contains a pointer to fields, the substructure is accessible everywhere. By allocating the substructure with DisasContext, we improve the locality of the accesses by avoiding one level of pointer chasing. In addition, we avoid a dangling pointer to stack allocated memory, diagnosed by static checkers. Launchpad: https://bugs.launchpad.net/bugs/1661815 Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20200123232248.1800-5-richard.henderson@linaro.org> Reviewed-by: Thomas Huth <thuth@redhat.com> Signed-off-by: Cornelia Huck <cohuck@redhat.com>
Diffstat (limited to 'qemu-keymap.c')
0 files changed, 0 insertions, 0 deletions