tlb.cc (5184:8782de2949e5) | tlb.cc (5232:d3801ea2792e) |
---|---|
1/* 2 * Copyright (c) 2007 The Hewlett-Packard Development Company 3 * All rights reserved. 4 * 5 * Redistribution and use of this software in source and binary forms, 6 * with or without modification, are permitted provided that the 7 * following conditions are met: 8 * --- 136 unchanged lines hidden (view full) --- 145 146 int seg = flags & mask(3); 147 148 //XXX Junk code to surpress the warning 149 if (storeCheck); 150 151 // If this is true, we're dealing with a request to read an internal 152 // value. | 1/* 2 * Copyright (c) 2007 The Hewlett-Packard Development Company 3 * All rights reserved. 4 * 5 * Redistribution and use of this software in source and binary forms, 6 * with or without modification, are permitted provided that the 7 * following conditions are met: 8 * --- 136 unchanged lines hidden (view full) --- 145 146 int seg = flags & mask(3); 147 148 //XXX Junk code to surpress the warning 149 if (storeCheck); 150 151 // If this is true, we're dealing with a request to read an internal 152 // value. |
153 if (seg == NUM_SEGMENTREGS) { | 153 if (seg == SEGMENT_REG_INT) { |
154 Addr prefix = vaddr & IntAddrPrefixMask; 155 if (prefix == IntAddrPrefixCPUID) { 156 panic("CPUID memory space not yet implemented!\n"); 157 } else if (prefix == IntAddrPrefixMSR) { 158 req->setMmapedIpr(true); 159 Addr regNum = 0; 160 switch (vaddr & ~IntAddrPrefixMask) { 161 case 0x10: --- 412 unchanged lines hidden --- | 154 Addr prefix = vaddr & IntAddrPrefixMask; 155 if (prefix == IntAddrPrefixCPUID) { 156 panic("CPUID memory space not yet implemented!\n"); 157 } else if (prefix == IntAddrPrefixMSR) { 158 req->setMmapedIpr(true); 159 Addr regNum = 0; 160 switch (vaddr & ~IntAddrPrefixMask) { 161 case 0x10: --- 412 unchanged lines hidden --- |