OSDN Git Service

target/arm: Only flush tlb if ASID changes
authorRichard Henderson <richard.henderson@linaro.org>
Wed, 24 Oct 2018 06:50:20 +0000 (07:50 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Wed, 24 Oct 2018 06:51:37 +0000 (07:51 +0100)
commit93f379b0c43617b1361f742f261479eaed4959cb
tree820b8f48c523040b54c6501a35d8f83308f4df01
parentf478847f1ee0df9397f561025ab2f687fd923571
target/arm: Only flush tlb if ASID changes

Since QEMU does not implement ASIDs, changes to the ASID must flush the
tlb.  However, if the ASID does not change there is no reason to flush.

In testing a boot of the Ubuntu installer to the first menu, this reduces
the number of flushes by 30%, or nearly 600k instances.

Reviewed-by: Aaron Lindsay <aaron@os.amperecomputing.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-id: 20181019015617.22583-3-richard.henderson@linaro.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
target/arm/helper.c