summaryrefslogtreecommitdiffstats
path: root/target-ppc/helper.h
diff options
context:
space:
mode:
authorDavid Gibson2011-04-01 06:15:11 +0200
committerAlexander Graf2011-04-01 18:34:54 +0200
commitefdef95fee7e150ac065e7b33ffbebd09a5ac83c (patch)
treee0db45adbacb54e56c18202a6a0f96ce01e909f6 /target-ppc/helper.h
parentAdd a hook to allow hypercalls to be emulated on PowerPC (diff)
downloadqemu-efdef95fee7e150ac065e7b33ffbebd09a5ac83c.tar.gz
qemu-efdef95fee7e150ac065e7b33ffbebd09a5ac83c.tar.xz
qemu-efdef95fee7e150ac065e7b33ffbebd09a5ac83c.zip
Implement PowerPC slbmfee and slbmfev instructions
For a 64-bit PowerPC target, qemu correctly implements translation through the segment lookaside buffer. Likewise it supports the slbmte instruction which is used to load entries into the SLB. However, it does not emulate the slbmfee and slbmfev instructions which read SLB entries back into registers. Because these are only occasionally used in guests (mostly for debugging) we get away with it. However, given the recent SLB cleanups, it becomes quite easy to implement these, and thereby allow, amongst other things, a guest Linux to use xmon's command to dump the SLB. Signed-off-by: David Gibson <dwg@au1.ibm.com> Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'target-ppc/helper.h')
-rw-r--r--target-ppc/helper.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/target-ppc/helper.h b/target-ppc/helper.h
index d512cb00e2..1a69cf876c 100644
--- a/target-ppc/helper.h
+++ b/target-ppc/helper.h
@@ -341,6 +341,8 @@ DEF_HELPER_FLAGS_0(tlbia, TCG_CALL_CONST, void)
DEF_HELPER_FLAGS_1(tlbie, TCG_CALL_CONST, void, tl)
#if defined(TARGET_PPC64)
DEF_HELPER_FLAGS_2(store_slb, TCG_CALL_CONST, void, tl, tl)
+DEF_HELPER_1(load_slb_esid, tl, tl)
+DEF_HELPER_1(load_slb_vsid, tl, tl)
DEF_HELPER_FLAGS_0(slbia, TCG_CALL_CONST, void)
DEF_HELPER_FLAGS_1(slbie, TCG_CALL_CONST, void, tl)
#endif