Commit b3167288 authored by Richard Henderson's avatar Richard Henderson Committed by Aurelien Jarno
Browse files

mips-linux-user: Always support rdhwr.

The kernel will emulate this instruction if it's not supported
natively.  This insn is used for TLS, among other things, and
so is required by modern glibc.
Signed-off-by: default avatarRichard Henderson <>
Cc: Riku Voipio <>
Signed-off-by: default avatarAurelien Jarno <>
parent 05168674
......@@ -8111,7 +8111,11 @@ gen_rdhwr (CPUMIPSState *env, DisasContext *ctx, int rt, int rd)
TCGv t0;
#if !defined(CONFIG_USER_ONLY)
/* The Linux kernel will emulate rdhwr if it's not supported natively.
Therefore only check the ISA in system mode. */
check_insn(env, ctx, ISA_MIPS32R2);
t0 = tcg_temp_new();
switch (rd) {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment