standard.isa (13548:b76f99d052bb) | standard.isa (13612:12ae022f3a30) |
---|---|
1// -*- mode:c++ -*- 2 3// Copyright (c) 2015 RISC-V Foundation 4// Copyright (c) 2016-2017 The University of Virginia 5// All rights reserved. 6// 7// Redistribution and use in source and binary forms, with or without 8// modification, are permitted provided that the following conditions are --- 206 unchanged lines hidden (view full) --- 215 %(class_name)s::execute(ExecContext *xc, 216 Trace::InstRecord *traceData) const 217 { 218 Fault fault = NoFault; 219 220 %(op_decl)s; 221 %(op_rd)s; 222 | 1// -*- mode:c++ -*- 2 3// Copyright (c) 2015 RISC-V Foundation 4// Copyright (c) 2016-2017 The University of Virginia 5// All rights reserved. 6// 7// Redistribution and use in source and binary forms, with or without 8// modification, are permitted provided that the following conditions are --- 206 unchanged lines hidden (view full) --- 215 %(class_name)s::execute(ExecContext *xc, 216 Trace::InstRecord *traceData) const 217 { 218 Fault fault = NoFault; 219 220 %(op_decl)s; 221 %(op_rd)s; 222 |
223 MiscReg data, olddata; | 223 RegVal data, olddata; |
224 switch (csr) { 225 case CSR_FCSR: 226 olddata = xc->readMiscReg(MISCREG_FFLAGS) | 227 (xc->readMiscReg(MISCREG_FRM) << FRM_OFFSET); 228 break; 229 default: 230 if (CSRData.find(csr) != CSRData.end()) { 231 olddata = xc->readMiscReg(CSRData.at(csr).physIndex); --- 154 unchanged lines hidden --- | 224 switch (csr) { 225 case CSR_FCSR: 226 olddata = xc->readMiscReg(MISCREG_FFLAGS) | 227 (xc->readMiscReg(MISCREG_FRM) << FRM_OFFSET); 228 break; 229 default: 230 if (CSRData.find(csr) != CSRData.end()) { 231 olddata = xc->readMiscReg(CSRData.at(csr).physIndex); --- 154 unchanged lines hidden --- |