]> git.proxmox.com Git - mirror_qemu.git/commit - tests/test-qht.c
qht: return existing entry when qht_insert fails
authorEmilio G. Cota <cota@braap.org>
Tue, 11 Jul 2017 22:48:21 +0000 (18:48 -0400)
committerRichard Henderson <richard.henderson@linaro.org>
Fri, 15 Jun 2018 17:42:55 +0000 (07:42 -1000)
commit32359d529f30bea8124ed671b2e6a22f22540488
tree937ee3f60e999574e764bcbf29f4aab1960cfe5b
parent61b8cef1d42567d3029e0c7180cbd0f16cc4be2d
qht: return existing entry when qht_insert fails

The meaning of "existing" is now changed to "matches in hash and
ht->cmp result". This is saner than just checking the pointer value.

Suggested-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: Emilio G. Cota <cota@braap.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
accel/tcg/translate-all.c
include/qemu/qht.h
tests/qht-bench.c
tests/test-qht.c
util/qht.c