Skip to content
Snippets Groups Projects
Commit 9fd1ae3a authored by Igor V. Kovalenko's avatar Igor V. Kovalenko Committed by Blue Swirl
Browse files

sparc64: fix mmu context at trap levels above zero


- cpu_mmu_index return MMU_NUCLEUS_IDX if trap level is not zero
- cpu_get_tb_cpu_state: store trap level and primary context in flags
  this allows to restart code translation when address translation is changed
- stop translation block after writing to pstate and tl registers
- stop translation block after writing to alternate space
  this can be optimized to stop only if address translation can be changed
  by write operation (e.g. by comparing with MMU ASI values)

Signed-off-by: default avatarIgor V. Kovalenko <igor.v.kovalenko@gmail.com>
Signed-off-by: default avatarBlue Swirl <blauwirbel@gmail.com>
parent e2129586
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment