]> Git Repo - qemu.git/commit - target/ppc/translate.c
target/ppc: Initialize lazy_tlb_flush correctly
authorDavid Gibson <[email protected]>
Mon, 19 Mar 2018 06:05:05 +0000 (17:05 +1100)
committerDavid Gibson <[email protected]>
Tue, 10 Apr 2018 00:05:38 +0000 (10:05 +1000)
commite69ba2b489d9cc6e976a29a58726d45361d85b9d
treea5980e2567d4952e3482c1e5956454b1633f3c11
parent915d34c5f99b0ab91517c69f54272bfdb6ca2b32
target/ppc: Initialize lazy_tlb_flush correctly

ppc_tr_init_disas_context() correctly sets lazy_tlb_flush to true on
certain CPU models.  However, it leaves it uninitialized, instead of
setting it to false on all others.

It wasn't caught before now because we didn't have examples in the tests
that exercised this path.  However it can now be caught using clang's
undefined behaviour sanitizer and the sam460ex board.

Suggested-by: Peter Maydell <[email protected]>
Signed-off-by: David Gibson <[email protected]>
Reviewed-by: Thomas Huth <[email protected]>
Reviewed-by: Greg Kurz <[email protected]>
target/ppc/translate.c
This page took 0.022746 seconds and 4 git commands to generate.