diff options
| author | Richard Henderson <richard.henderson@linaro.org> | 2022-04-30 22:49:53 -0700 |
|---|---|---|
| committer | Peter Maydell <peter.maydell@linaro.org> | 2022-05-05 09:35:51 +0100 |
| commit | 5860362d25f3afa99364d60295c09147a07055f1 (patch) | |
| tree | e3e583a920d169d0254bb31f2e7df132723a3127 /scripts/meson-buildoptions.py | |
| parent | 9da35a40fda3b577e7251d39f1b4aad42348cc08 (diff) | |
| download | focaccia-qemu-5860362d25f3afa99364d60295c09147a07055f1.tar.gz focaccia-qemu-5860362d25f3afa99364d60295c09147a07055f1.zip | |
target/arm: Store cpregs key in the hash table directly
Cast the uint32_t key into a gpointer directly, which allows us to avoid allocating storage for each key. Use g_hash_table_lookup when we already have a gpointer (e.g. for callbacks like count_cpreg), or when using get_arm_cp_reginfo would require casting away const. Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Message-id: 20220501055028.646596-12-richard.henderson@linaro.org Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'scripts/meson-buildoptions.py')
0 files changed, 0 insertions, 0 deletions