OSDN Git Service

target/mips: Implement segmentation control
authorJames Hogan <james.hogan@imgtec.com>
Tue, 18 Jul 2017 11:55:57 +0000 (12:55 +0100)
committerYongbok Kim <yongbok.kim@imgtec.com>
Thu, 20 Jul 2017 21:42:26 +0000 (22:42 +0100)
commit480e79aedd322fcfac17052caff21626ea7c78e2
tree1f568ce6824e27ccf9020f4e2b2c671cc9d09d67
parentcec56a733dd2c3fa81dbedbecf03922258747f7d
target/mips: Implement segmentation control

Implement the optional segmentation control feature in the virtual to
physical address translation code.

The fixed legacy segment and xkphys handling is replaced with a dynamic
layout based on the segmentation control registers (which should be set
up even when the feature is not exposed to the guest).

Signed-off-by: James Hogan <james.hogan@imgtec.com>
Cc: Yongbok Kim <yongbok.kim@imgtec.com>
Cc: Aurelien Jarno <aurelien@aurel32.net>
Reviewed-by: Yongbok Kim <yongbok.kim@imgtec.com>
[yongbok.kim@imgtec.com:
  cosmetic changes]
Signed-off-by: Yongbok Kim <yongbok.kim@imgtec.com>
target/mips/helper.c