initial sparc64 support - sparc fixes (Blue Swirl)

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1251 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
bellard 2005-01-30 22:39:04 +00:00
parent 49be803015
commit af7bf89b1f
7 changed files with 263 additions and 180 deletions

View file

@ -209,7 +209,8 @@ void helper_st_asi(int asi, int size, int sign)
void helper_rett()
{
int cwp;
unsigned int cwp;
env->psret = 1;
cwp = (env->cwp + 1) & (NWINDOWS - 1);
if (env->wim & (1 << cwp)) {
@ -255,3 +256,13 @@ void helper_debug()
env->exception_index = EXCP_DEBUG;
cpu_loop_exit();
}
void do_wrpsr()
{
PUT_PSR(env, T0);
}
void do_rdpsr()
{
T0 = GET_PSR(env);
}