isa.hh (6718:2a131d15ec34) isa.hh (6719:260676453f66)
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;

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

74 }
75 }
76
77 public:
78 void clear()
79 {
80 memset(miscRegs, 0, sizeof(miscRegs));
81 CPSR cpsr = 0;
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;

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

74 }
75 }
76
77 public:
78 void clear()
79 {
80 memset(miscRegs, 0, sizeof(miscRegs));
81 CPSR cpsr = 0;
82 cpsr.mode = MODE_SYSTEM;
82 cpsr.mode = MODE_USER;
83 miscRegs[MISCREG_CPSR] = cpsr;
84 updateRegMap(cpsr);
85 //XXX We need to initialize the rest of the state.
86 }
87
88 MiscReg
89 readMiscRegNoEffect(int misc_reg)
90 {

--- 60 unchanged lines hidden ---
83 miscRegs[MISCREG_CPSR] = cpsr;
84 updateRegMap(cpsr);
85 //XXX We need to initialize the rest of the state.
86 }
87
88 MiscReg
89 readMiscRegNoEffect(int misc_reg)
90 {

--- 60 unchanged lines hidden ---