target-arm: Avoid unnecessary TLB flush on TCR_EL2, TCR_EL3 writes
commit6459b94c26dd666badb3547fef1456992a08e60b
authorPeter Maydell <peter.maydell@linaro.org>
Thu, 12 May 2016 12:22:30 +0000 (12 13:22 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 12 May 2016 12:22:30 +0000 (12 13:22 +0100)
tree226aeeb872ed062fb90067d454b3b22cd1776952
parent4274d821ff586b7691a151dacd93a42e344915bb
target-arm: Avoid unnecessary TLB flush on TCR_EL2, TCR_EL3 writes

The TCR_EL2 and TCR_EL3 regdefs were incorrectly using the
vmsa_tcr_el1_write function for writes. Since these registers don't
have the A1 bit that TCR_EL1 does, we don't need to do a tlb_flush()
when they are written. Remove the unnecessary .writefn and also the
harmless but unneeded .raw_writefn and .resetfn definitions.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Sergey Fedorov <sergey.fedorov@linaro.org>
target-arm/helper.c