MIPS Userland TLS register emulation, by Daniel Jacobowitz.

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2465 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
ths 2007-03-02 20:48:00 +00:00
parent c05ac0cdac
commit 6f5b89a07c
6 changed files with 39 additions and 2 deletions

View file

@ -4728,6 +4728,12 @@ static void decode_opc (CPUState *env, DisasContext *ctx)
case 3:
gen_op_rdhwr_ccres();
break;
#if defined (CONFIG_USER_ONLY)
case 29:
gen_op_tls_value ();
GEN_STORE_TN_REG(rt, T0);
break;
#endif
default: /* Invalid */
MIPS_INVAL("rdhwr");
generate_exception(ctx, EXCP_RI);