isa.hh (6726:a5322e816a2a) isa.hh (6735:6437ad24a8a0)
1/*
2 * Copyright (c) 2009 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 71 unchanged lines hidden (view full) ---

80 public:
81 void clear()
82 {
83 memset(miscRegs, 0, sizeof(miscRegs));
84 CPSR cpsr = 0;
85 cpsr.mode = MODE_USER;
86 miscRegs[MISCREG_CPSR] = cpsr;
87 updateRegMap(cpsr);
1/*
2 * Copyright (c) 2009 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 71 unchanged lines hidden (view full) ---

80 public:
81 void clear()
82 {
83 memset(miscRegs, 0, sizeof(miscRegs));
84 CPSR cpsr = 0;
85 cpsr.mode = MODE_USER;
86 miscRegs[MISCREG_CPSR] = cpsr;
87 updateRegMap(cpsr);
88
89 SCTLR sctlr = 0;
90 sctlr.nmfi = 1;
91 sctlr.rao1 = 1;
92 sctlr.rao2 = 1;
93 sctlr.rao3 = 1;
94 sctlr.rao4 = 1;
95
88 //XXX We need to initialize the rest of the state.
89 }
90
91 MiscReg
92 readMiscRegNoEffect(int misc_reg)
93 {
94 assert(misc_reg < NumMiscRegs);
95 return miscRegs[misc_reg];

--- 61 unchanged lines hidden ---
96 //XXX We need to initialize the rest of the state.
97 }
98
99 MiscReg
100 readMiscRegNoEffect(int misc_reg)
101 {
102 assert(misc_reg < NumMiscRegs);
103 return miscRegs[misc_reg];

--- 61 unchanged lines hidden ---