util.isa (4648:173a212f5091) | util.isa (5570:13592d41f290) |
---|---|
1// Copyright (c) 2006-2007 The Regents of The University of Michigan 2// All rights reserved. 3// 4// Redistribution and use in source and binary forms, with or without 5// modification, are permitted provided that the following conditions are 6// met: redistributions of source code must retain the above copyright 7// notice, this list of conditions and the following disclaimer; 8// redistributions in binary form must reproduce the above copyright --- 300 unchanged lines hidden (view full) --- 309 fault = new IllegalInstruction; 310 else if(EA & 0xf) 311 fault = new MemAddressNotAligned; 312 ''' 313 # XXX Need to take care of pstate.hpriv as well. The lower ASIs 314 # are split into ones that are available in priv and hpriv, and 315 # those that are only available in hpriv 316 AlternateASIPrivFaultCheck = ''' | 1// Copyright (c) 2006-2007 The Regents of The University of Michigan 2// All rights reserved. 3// 4// Redistribution and use in source and binary forms, with or without 5// modification, are permitted provided that the following conditions are 6// met: redistributions of source code must retain the above copyright 7// notice, this list of conditions and the following disclaimer; 8// redistributions in binary form must reproduce the above copyright --- 300 unchanged lines hidden (view full) --- 309 fault = new IllegalInstruction; 310 else if(EA & 0xf) 311 fault = new MemAddressNotAligned; 312 ''' 313 # XXX Need to take care of pstate.hpriv as well. The lower ASIs 314 # are split into ones that are available in priv and hpriv, and 315 # those that are only available in hpriv 316 AlternateASIPrivFaultCheck = ''' |
317 if(!bits(Pstate,2,2) && !bits(Hpstate,2,2) && !AsiIsUnPriv((ASI)EXT_ASI) || 318 !bits(Hpstate,2,2) && AsiIsHPriv((ASI)EXT_ASI)) 319 fault = new PrivilegedAction; 320 else if(AsiIsAsIfUser((ASI)EXT_ASI) && !bits(Pstate,2,2)) | 317 if ((!bits(Pstate,2,2) && !bits(Hpstate,2,2) && 318 !AsiIsUnPriv((ASI)EXT_ASI)) || 319 (!bits(Hpstate,2,2) && AsiIsHPriv((ASI)EXT_ASI))) |
321 fault = new PrivilegedAction; | 320 fault = new PrivilegedAction; |
321 else if (AsiIsAsIfUser((ASI)EXT_ASI) && !bits(Pstate,2,2)) 322 fault = new PrivilegedAction; |
|
322 ''' 323 324 TruncateEA = ''' 325#if !FULL_SYSTEM 326 EA = Pstate<3:> ? EA<31:0> : EA; 327#endif 328 ''' 329}}; --- 34 unchanged lines hidden --- | 323 ''' 324 325 TruncateEA = ''' 326#if !FULL_SYSTEM 327 EA = Pstate<3:> ? EA<31:0> : EA; 328#endif 329 ''' 330}}; --- 34 unchanged lines hidden --- |