Last change
on this file since 122 was
81,
checked in by rosiere, 16 years ago
|
- Finish Environment (and test)
- Continue predictor_unit
- Add external tools
- svn keyword "Id" set
|
-
Property svn:keywords set to
Id
|
File size:
477 bytes
|
Rev | Line | |
---|
[72] | 1 | #include "Behavioural/include/SPR_access_mode.h" |
---|
| 2 | |
---|
| 3 | namespace morpheo { |
---|
| 4 | namespace behavioural { |
---|
| 5 | |
---|
| 6 | void SPR_access_mode::change_mode (uint32_t num_group, uint32_t num_reg, spr_access_mode_t new_mode) |
---|
| 7 | { |
---|
| 8 | if (not valid (num_group, num_reg)) |
---|
| 9 | throw ERRORMORPHEO("SPR_access_mode::change_mode", "Invalid group number or register number."); |
---|
| 10 | |
---|
| 11 | _spr_generic[num_group][num_reg] = new_mode; |
---|
| 12 | } |
---|
| 13 | |
---|
| 14 | }; // end namespace behavioural |
---|
| 15 | }; // end namespace morpheo |
---|
| 16 | |
---|
Note: See
TracBrowser
for help on using the repository browser.