isa.cc revision 8059
13993Sgblack@eecs.umich.edu/* 22632Sstever@eecs.umich.edu * Copyright (c) 2010 ARM Limited 32632Sstever@eecs.umich.edu * All rights reserved 42632Sstever@eecs.umich.edu * 52632Sstever@eecs.umich.edu * The license below extends only to copyright in the software and shall 62632Sstever@eecs.umich.edu * not be construed as granting a license to any other intellectual 72632Sstever@eecs.umich.edu * property including but not limited to intellectual property relating 82632Sstever@eecs.umich.edu * to a hardware implementation of the functionality of the software 92632Sstever@eecs.umich.edu * licensed hereunder. You may use the software subject to the license 102632Sstever@eecs.umich.edu * terms below provided that you ensure that this notice is replicated 112632Sstever@eecs.umich.edu * unmodified and in its entirety in all distributions of the software, 122632Sstever@eecs.umich.edu * modified or unmodified, in source code or in binary form. 132632Sstever@eecs.umich.edu * 142632Sstever@eecs.umich.edu * Redistribution and use in source and binary forms, with or without 152632Sstever@eecs.umich.edu * modification, are permitted provided that the following conditions are 162632Sstever@eecs.umich.edu * met: redistributions of source code must retain the above copyright 172632Sstever@eecs.umich.edu * notice, this list of conditions and the following disclaimer; 182632Sstever@eecs.umich.edu * redistributions in binary form must reproduce the above copyright 192632Sstever@eecs.umich.edu * notice, this list of conditions and the following disclaimer in the 202632Sstever@eecs.umich.edu * documentation and/or other materials provided with the distribution; 212632Sstever@eecs.umich.edu * neither the name of the copyright holders nor the names of its 222632Sstever@eecs.umich.edu * contributors may be used to endorse or promote products derived from 232632Sstever@eecs.umich.edu * this software without specific prior written permission. 242632Sstever@eecs.umich.edu * 252632Sstever@eecs.umich.edu * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 262632Sstever@eecs.umich.edu * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 272632Sstever@eecs.umich.edu * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 282632Sstever@eecs.umich.edu * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 292632Sstever@eecs.umich.edu * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 302632Sstever@eecs.umich.edu * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 312023SN/A * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 322023SN/A * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 332023SN/A * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 342023SN/A * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 352023SN/A * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 362023SN/A * 372023SN/A * Authors: Gabe Black 382023SN/A * Ali Saidi 392023SN/A */ 404040Ssaidi@eecs.umich.edu 412023SN/A#include "arch/arm/isa.hh" 422023SN/A#include "sim/faults.hh" 432023SN/A#include "sim/stat_control.hh" 442023SN/A 452023SN/Anamespace ArmISA 463279Sgblack@eecs.umich.edu{ 473279Sgblack@eecs.umich.edu 483279Sgblack@eecs.umich.eduvoid 493279Sgblack@eecs.umich.eduISA::clear() 503279Sgblack@eecs.umich.edu{ 513279Sgblack@eecs.umich.edu SCTLR sctlr_rst = miscRegs[MISCREG_SCTLR_RST]; 523381Sgblack@eecs.umich.edu 533279Sgblack@eecs.umich.edu memset(miscRegs, 0, sizeof(miscRegs)); 543279Sgblack@eecs.umich.edu CPSR cpsr = 0; 553279Sgblack@eecs.umich.edu cpsr.mode = MODE_USER; 562023SN/A miscRegs[MISCREG_CPSR] = cpsr; 572023SN/A updateRegMap(cpsr); 582023SN/A 592023SN/A SCTLR sctlr = 0; 603761Sgblack@eecs.umich.edu sctlr.te = (bool)sctlr_rst.te; 612501SN/A sctlr.nmfi = (bool)sctlr_rst.nmfi; 623761Sgblack@eecs.umich.edu sctlr.v = (bool)sctlr_rst.v; 633761Sgblack@eecs.umich.edu sctlr.u = 1; 643761Sgblack@eecs.umich.edu sctlr.xp = 1; 653761Sgblack@eecs.umich.edu sctlr.rao2 = 1; 663835Sgblack@eecs.umich.edu sctlr.rao3 = 1; 673952Sgblack@eecs.umich.edu sctlr.rao4 = 1; 683835Sgblack@eecs.umich.edu miscRegs[MISCREG_SCTLR] = sctlr; 693761Sgblack@eecs.umich.edu miscRegs[MISCREG_SCTLR_RST] = sctlr_rst; 703761Sgblack@eecs.umich.edu 713761Sgblack@eecs.umich.edu /* Start with an event in the mailbox */ 723761Sgblack@eecs.umich.edu miscRegs[MISCREG_SEV_MAILBOX] = 1; 733761Sgblack@eecs.umich.edu 743761Sgblack@eecs.umich.edu /* 753761Sgblack@eecs.umich.edu * Implemented = '5' from "M5", 763761Sgblack@eecs.umich.edu * Variant = 0, 773761Sgblack@eecs.umich.edu */ 783761Sgblack@eecs.umich.edu miscRegs[MISCREG_MIDR] = 793761Sgblack@eecs.umich.edu (0x35 << 24) | // Implementor is '5' from "M5" 803279Sgblack@eecs.umich.edu (0 << 20) | // Variant 813279Sgblack@eecs.umich.edu (0xf << 16) | // Architecture from CPUID scheme 823279Sgblack@eecs.umich.edu (0xf00 << 4) | // Primary part number 833279Sgblack@eecs.umich.edu (0 << 0) | // Revision 843279Sgblack@eecs.umich.edu 0; 853279Sgblack@eecs.umich.edu 863279Sgblack@eecs.umich.edu // Separate Instruction and Data TLBs. 873279Sgblack@eecs.umich.edu miscRegs[MISCREG_TLBTR] = 1; 883279Sgblack@eecs.umich.edu 893279Sgblack@eecs.umich.edu MVFR0 mvfr0 = 0; 903279Sgblack@eecs.umich.edu mvfr0.advSimdRegisters = 2; 913279Sgblack@eecs.umich.edu mvfr0.singlePrecision = 2; 923993Sgblack@eecs.umich.edu mvfr0.doublePrecision = 2; 933279Sgblack@eecs.umich.edu mvfr0.vfpExceptionTrapping = 0; 943993Sgblack@eecs.umich.edu mvfr0.divide = 1; 953279Sgblack@eecs.umich.edu mvfr0.squareRoot = 1; 962954Sgblack@eecs.umich.edu mvfr0.shortVectors = 1; 972954Sgblack@eecs.umich.edu mvfr0.roundingModes = 1; 983761Sgblack@eecs.umich.edu miscRegs[MISCREG_MVFR0] = mvfr0; 992516SN/A 1002561SN/A MVFR1 mvfr1 = 0; 1012561SN/A mvfr1.flushToZero = 1; 1022561SN/A mvfr1.defaultNaN = 1; 1034098Ssaidi@eecs.umich.edu mvfr1.advSimdLoadStore = 1; 1044098Ssaidi@eecs.umich.edu mvfr1.advSimdInteger = 1; 1054098Ssaidi@eecs.umich.edu mvfr1.advSimdSinglePrecision = 1; 1064098Ssaidi@eecs.umich.edu mvfr1.advSimdHalfPrecision = 1; 1074098Ssaidi@eecs.umich.edu mvfr1.vfpHalfPrecision = 1; 1084098Ssaidi@eecs.umich.edu miscRegs[MISCREG_MVFR1] = mvfr1; 1092646Ssaidi@eecs.umich.edu 1102469SN/A miscRegs[MISCREG_MPIDR] = 0; 1113761Sgblack@eecs.umich.edu 1123761Sgblack@eecs.umich.edu // Reset values of PRRR and NMRR are implementation dependent 1133761Sgblack@eecs.umich.edu 1143761Sgblack@eecs.umich.edu miscRegs[MISCREG_PRRR] = 1152954Sgblack@eecs.umich.edu (1 << 19) | // 19 1163587Sgblack@eecs.umich.edu (0 << 18) | // 18 1173587Sgblack@eecs.umich.edu (0 << 17) | // 17 1183587Sgblack@eecs.umich.edu (1 << 16) | // 16 1193587Sgblack@eecs.umich.edu (2 << 14) | // 15:14 1203587Sgblack@eecs.umich.edu (0 << 12) | // 13:12 1213587Sgblack@eecs.umich.edu (2 << 10) | // 11:10 1223587Sgblack@eecs.umich.edu (2 << 8) | // 9:8 1233587Sgblack@eecs.umich.edu (2 << 6) | // 7:6 1243587Sgblack@eecs.umich.edu (2 << 4) | // 5:4 1253587Sgblack@eecs.umich.edu (1 << 2) | // 3:2 1262646Ssaidi@eecs.umich.edu 0; // 1:0 1273587Sgblack@eecs.umich.edu miscRegs[MISCREG_NMRR] = 1283587Sgblack@eecs.umich.edu (1 << 30) | // 31:30 1293587Sgblack@eecs.umich.edu (0 << 26) | // 27:26 1303587Sgblack@eecs.umich.edu (0 << 24) | // 25:24 1313587Sgblack@eecs.umich.edu (3 << 22) | // 23:22 1323587Sgblack@eecs.umich.edu (2 << 20) | // 21:20 1333587Sgblack@eecs.umich.edu (0 << 18) | // 19:18 1343587Sgblack@eecs.umich.edu (0 << 16) | // 17:16 1353587Sgblack@eecs.umich.edu (1 << 14) | // 15:14 1363793Sgblack@eecs.umich.edu (0 << 12) | // 13:12 1373761Sgblack@eecs.umich.edu (2 << 10) | // 11:10 1383761Sgblack@eecs.umich.edu (0 << 8) | // 9:8 1393761Sgblack@eecs.umich.edu (3 << 6) | // 7:6 1403761Sgblack@eecs.umich.edu (2 << 4) | // 5:4 1413761Sgblack@eecs.umich.edu (0 << 2) | // 3:2 1423761Sgblack@eecs.umich.edu 0; // 1:0 1433761Sgblack@eecs.umich.edu 1443761Sgblack@eecs.umich.edu miscRegs[MISCREG_CPACR] = 0; 1453761Sgblack@eecs.umich.edu miscRegs[MISCREG_FPSID] = 0x410430A0; 1463761Sgblack@eecs.umich.edu //XXX We need to initialize the rest of the state. 1473587Sgblack@eecs.umich.edu} 1482646Ssaidi@eecs.umich.edu 1493587Sgblack@eecs.umich.eduMiscReg 1503587Sgblack@eecs.umich.eduISA::readMiscRegNoEffect(int misc_reg) 1513587Sgblack@eecs.umich.edu{ 1523587Sgblack@eecs.umich.edu assert(misc_reg < NumMiscRegs); 1533587Sgblack@eecs.umich.edu 1543587Sgblack@eecs.umich.edu int flat_idx; 1553600Sgblack@eecs.umich.edu if (misc_reg == MISCREG_SPSR) 1562646Ssaidi@eecs.umich.edu flat_idx = flattenMiscIndex(misc_reg); 1573587Sgblack@eecs.umich.edu else 1583388Sgblack@eecs.umich.edu flat_idx = misc_reg; 1593388Sgblack@eecs.umich.edu MiscReg val = miscRegs[flat_idx]; 1602646Ssaidi@eecs.umich.edu 1612023SN/A DPRINTF(MiscRegs, "Reading From misc reg %d (%d) : %#x\n", 162 misc_reg, flat_idx, val); 163 return val; 164} 165 166 167MiscReg 168ISA::readMiscReg(int misc_reg, ThreadContext *tc) 169{ 170 if (misc_reg == MISCREG_CPSR) { 171 CPSR cpsr = miscRegs[misc_reg]; 172 PCState pc = tc->pcState(); 173 cpsr.j = pc.jazelle() ? 1 : 0; 174 cpsr.t = pc.thumb() ? 1 : 0; 175 return cpsr; 176 } 177 if (misc_reg >= MISCREG_CP15_UNIMP_START) 178 panic("Unimplemented CP15 register %s read.\n", 179 miscRegName[misc_reg]); 180 181 switch (misc_reg) { 182 case MISCREG_CLIDR: 183 warn_once("The clidr register always reports 0 caches.\n"); 184 break; 185 case MISCREG_CCSIDR: 186 warn_once("The ccsidr register isn't implemented and " 187 "always reads as 0.\n"); 188 break; 189 case MISCREG_ID_PFR0: 190 warn("Returning thumbEE disabled for now since we don't support CP14" 191 "config registers and jumping to ThumbEE vectors\n"); 192 return 0x0031; // !ThumbEE | !Jazelle | Thumb | ARM 193 case MISCREG_ID_MMFR0: 194 return 0x03; //VMSAz7 195 case MISCREG_CTR: 196 return 0x86468006; // V7, 64 byte cache line, load/exclusive is exact 197 case MISCREG_ACTLR: 198 warn("Not doing anything for miscreg ACTLR\n"); 199 break; 200 case MISCREG_PMCR: 201 case MISCREG_PMCCNTR: 202 case MISCREG_PMSELR: 203 warn("Not doing anyhting for read to miscreg %s\n", 204 miscRegName[misc_reg]); 205 break; 206 case MISCREG_FPSCR_QC: 207 return readMiscRegNoEffect(MISCREG_FPSCR) & ~FpscrQcMask; 208 case MISCREG_FPSCR_EXC: 209 return readMiscRegNoEffect(MISCREG_FPSCR) & ~FpscrExcMask; 210 } 211 return readMiscRegNoEffect(misc_reg); 212} 213 214void 215ISA::setMiscRegNoEffect(int misc_reg, const MiscReg &val) 216{ 217 assert(misc_reg < NumMiscRegs); 218 219 int flat_idx; 220 if (misc_reg == MISCREG_SPSR) 221 flat_idx = flattenMiscIndex(misc_reg); 222 else 223 flat_idx = misc_reg; 224 miscRegs[flat_idx] = val; 225 226 DPRINTF(MiscRegs, "Writing to misc reg %d (%d) : %#x\n", misc_reg, 227 flat_idx, val); 228} 229 230void 231ISA::setMiscReg(int misc_reg, const MiscReg &val, ThreadContext *tc) 232{ 233 234 MiscReg newVal = val; 235 if (misc_reg == MISCREG_CPSR) { 236 updateRegMap(val); 237 238 239 CPSR old_cpsr = miscRegs[MISCREG_CPSR]; 240 int old_mode = old_cpsr.mode; 241 CPSR cpsr = val; 242 if (old_mode != cpsr.mode) { 243 tc->getITBPtr()->invalidateMiscReg(); 244 tc->getDTBPtr()->invalidateMiscReg(); 245 } 246 247 DPRINTF(Arm, "Updating CPSR from %#x to %#x f:%d i:%d a:%d mode:%#x\n", 248 miscRegs[misc_reg], cpsr, cpsr.f, cpsr.i, cpsr.a, cpsr.mode); 249 PCState pc = tc->pcState(); 250 pc.nextThumb(cpsr.t); 251 pc.nextJazelle(cpsr.j); 252 tc->pcState(pc); 253 } else if (misc_reg >= MISCREG_CP15_UNIMP_START && 254 misc_reg < MISCREG_CP15_END) { 255 panic("Unimplemented CP15 register %s wrote with %#x.\n", 256 miscRegName[misc_reg], val); 257 } else { 258 switch (misc_reg) { 259 case MISCREG_ITSTATE: 260 { 261 ITSTATE itstate = newVal; 262 CPSR cpsr = miscRegs[MISCREG_CPSR]; 263 cpsr.it1 = itstate.bottom2; 264 cpsr.it2 = itstate.top6; 265 miscRegs[MISCREG_CPSR] = cpsr; 266 DPRINTF(MiscRegs, 267 "Updating ITSTATE -> %#x in CPSR -> %#x.\n", 268 (uint8_t)itstate, (uint32_t)cpsr); 269 } 270 break; 271 case MISCREG_CPACR: 272 { 273 CPACR newCpacr = 0; 274 CPACR valCpacr = val; 275 newCpacr.cp10 = valCpacr.cp10; 276 newCpacr.cp11 = valCpacr.cp11; 277 //XXX d32dis isn't implemented. The manual says whether or not 278 //it works is implementation defined. 279 newCpacr.asedis = valCpacr.asedis; 280 newVal = newCpacr; 281 } 282 break; 283 case MISCREG_CSSELR: 284 warn_once("The csselr register isn't implemented.\n"); 285 break; 286 case MISCREG_FPSCR: 287 { 288 const uint32_t ones = (uint32_t)(-1); 289 FPSCR fpscrMask = 0; 290 fpscrMask.ioc = ones; 291 fpscrMask.dzc = ones; 292 fpscrMask.ofc = ones; 293 fpscrMask.ufc = ones; 294 fpscrMask.ixc = ones; 295 fpscrMask.idc = ones; 296 fpscrMask.len = ones; 297 fpscrMask.stride = ones; 298 fpscrMask.rMode = ones; 299 fpscrMask.fz = ones; 300 fpscrMask.dn = ones; 301 fpscrMask.ahp = ones; 302 fpscrMask.qc = ones; 303 fpscrMask.v = ones; 304 fpscrMask.c = ones; 305 fpscrMask.z = ones; 306 fpscrMask.n = ones; 307 newVal = (newVal & (uint32_t)fpscrMask) | 308 (miscRegs[MISCREG_FPSCR] & ~(uint32_t)fpscrMask); 309 } 310 break; 311 case MISCREG_FPSCR_QC: 312 { 313 newVal = miscRegs[MISCREG_FPSCR] | (newVal & FpscrQcMask); 314 misc_reg = MISCREG_FPSCR; 315 } 316 break; 317 case MISCREG_FPSCR_EXC: 318 { 319 newVal = miscRegs[MISCREG_FPSCR] | (newVal & FpscrExcMask); 320 misc_reg = MISCREG_FPSCR; 321 } 322 break; 323 case MISCREG_FPEXC: 324 { 325 const uint32_t fpexcMask = 0x60000000; 326 newVal = (newVal & fpexcMask) | 327 (miscRegs[MISCREG_FPEXC] & ~fpexcMask); 328 } 329 break; 330 case MISCREG_SCTLR: 331 { 332 DPRINTF(MiscRegs, "Writing SCTLR: %#x\n", newVal); 333 SCTLR sctlr = miscRegs[MISCREG_SCTLR]; 334 SCTLR new_sctlr = newVal; 335 new_sctlr.nmfi = (bool)sctlr.nmfi; 336 miscRegs[MISCREG_SCTLR] = (MiscReg)new_sctlr; 337 tc->getITBPtr()->invalidateMiscReg(); 338 tc->getDTBPtr()->invalidateMiscReg(); 339 return; 340 } 341 case MISCREG_TLBTR: 342 case MISCREG_MVFR0: 343 case MISCREG_MVFR1: 344 case MISCREG_MPIDR: 345 case MISCREG_FPSID: 346 return; 347 case MISCREG_TLBIALLIS: 348 case MISCREG_TLBIALL: 349 warn_once("Need to flush all TLBs in MP\n"); 350 tc->getITBPtr()->flushAll(); 351 tc->getDTBPtr()->flushAll(); 352 return; 353 case MISCREG_ITLBIALL: 354 tc->getITBPtr()->flushAll(); 355 return; 356 case MISCREG_DTLBIALL: 357 tc->getDTBPtr()->flushAll(); 358 return; 359 case MISCREG_TLBIMVAIS: 360 case MISCREG_TLBIMVA: 361 warn_once("Need to flush all TLBs in MP\n"); 362 tc->getITBPtr()->flushMvaAsid(mbits(newVal, 31, 12), 363 bits(newVal, 7,0)); 364 tc->getDTBPtr()->flushMvaAsid(mbits(newVal, 31, 12), 365 bits(newVal, 7,0)); 366 return; 367 case MISCREG_TLBIASIDIS: 368 case MISCREG_TLBIASID: 369 warn_once("Need to flush all TLBs in MP\n"); 370 tc->getITBPtr()->flushAsid(bits(newVal, 7,0)); 371 tc->getDTBPtr()->flushAsid(bits(newVal, 7,0)); 372 return; 373 case MISCREG_TLBIMVAAIS: 374 case MISCREG_TLBIMVAA: 375 warn_once("Need to flush all TLBs in MP\n"); 376 tc->getITBPtr()->flushMva(mbits(newVal, 31,12)); 377 tc->getDTBPtr()->flushMva(mbits(newVal, 31,12)); 378 return; 379 case MISCREG_ITLBIMVA: 380 tc->getITBPtr()->flushMvaAsid(mbits(newVal, 31, 12), 381 bits(newVal, 7,0)); 382 return; 383 case MISCREG_DTLBIMVA: 384 tc->getDTBPtr()->flushMvaAsid(mbits(newVal, 31, 12), 385 bits(newVal, 7,0)); 386 return; 387 case MISCREG_ITLBIASID: 388 tc->getITBPtr()->flushAsid(bits(newVal, 7,0)); 389 return; 390 case MISCREG_DTLBIASID: 391 tc->getDTBPtr()->flushAsid(bits(newVal, 7,0)); 392 return; 393 case MISCREG_ACTLR: 394 warn("Not doing anything for write of miscreg ACTLR\n"); 395 break; 396 case MISCREG_PMCR: 397 { 398 // Performance counters not implemented. Instead, interpret 399 // a reset command to this register to reset the simulator 400 // statistics. 401 // PMCR_E | PMCR_P | PMCR_C 402 const int ResetAndEnableCounters = 0x7; 403 if (newVal == ResetAndEnableCounters) { 404 inform("Resetting all simobject stats\n"); 405 Stats::schedStatEvent(false, true); 406 break; 407 } 408 } 409 case MISCREG_PMCCNTR: 410 case MISCREG_PMSELR: 411 warn("Not doing anything for write to miscreg %s\n", 412 miscRegName[misc_reg]); 413 break; 414 case MISCREG_V2PCWPR: 415 case MISCREG_V2PCWPW: 416 case MISCREG_V2PCWUR: 417 case MISCREG_V2PCWUW: 418 case MISCREG_V2POWPR: 419 case MISCREG_V2POWPW: 420 case MISCREG_V2POWUR: 421 case MISCREG_V2POWUW: 422 { 423 RequestPtr req = new Request; 424 unsigned flags; 425 BaseTLB::Mode mode; 426 Fault fault; 427 switch(misc_reg) { 428 case MISCREG_V2PCWPR: 429 flags = TLB::MustBeOne; 430 mode = BaseTLB::Read; 431 break; 432 case MISCREG_V2PCWPW: 433 flags = TLB::MustBeOne; 434 mode = BaseTLB::Write; 435 break; 436 case MISCREG_V2PCWUR: 437 flags = TLB::MustBeOne | TLB::UserMode; 438 mode = BaseTLB::Read; 439 break; 440 case MISCREG_V2PCWUW: 441 flags = TLB::MustBeOne | TLB::UserMode; 442 mode = BaseTLB::Write; 443 break; 444 default: 445 panic("Security Extensions not implemented!"); 446 } 447 req->setVirt(0, val, 1, flags, tc->pcState().pc()); 448 fault = tc->getDTBPtr()->translateAtomic(req, tc, mode); 449 if (fault == NoFault) { 450 miscRegs[MISCREG_PAR] = 451 (req->getPaddr() & 0xfffff000) | 452 (tc->getDTBPtr()->getAttr() ); 453 DPRINTF(MiscRegs, 454 "MISCREG: Translated addr 0x%08x: PAR: 0x%08x\n", 455 val, miscRegs[MISCREG_PAR]); 456 } 457 else { 458 // Set fault bit and FSR 459 FSR fsr = miscRegs[MISCREG_DFSR]; 460 miscRegs[MISCREG_PAR] = 461 (fsr.ext << 6) | 462 (fsr.fsHigh << 5) | 463 (fsr.fsLow << 1) | 464 0x1; // F bit 465 } 466 return; 467 } 468 case MISCREG_CONTEXTIDR: 469 case MISCREG_PRRR: 470 case MISCREG_NMRR: 471 case MISCREG_DACR: 472 tc->getITBPtr()->invalidateMiscReg(); 473 tc->getDTBPtr()->invalidateMiscReg(); 474 break; 475 476 } 477 } 478 setMiscRegNoEffect(misc_reg, newVal); 479} 480 481} 482