util.isa (3949:b6664282d899) | util.isa (3952:092d03b2ab95) |
---|---|
1// Copyright (c) 2006 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 --- 281 unchanged lines hidden (view full) --- 290 # The LSB can be zero, since it's really the MSB in doubles and quads 291 # and we're dealing with doubles 292 BlockAlignmentFaultCheck = ''' 293 if(RD & 0xe) 294 fault = new IllegalInstruction; 295 else if(EA & 0x3f) 296 fault = new MemAddressNotAligned; 297 ''' | 1// Copyright (c) 2006 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 --- 281 unchanged lines hidden (view full) --- 290 # The LSB can be zero, since it's really the MSB in doubles and quads 291 # and we're dealing with doubles 292 BlockAlignmentFaultCheck = ''' 293 if(RD & 0xe) 294 fault = new IllegalInstruction; 295 else if(EA & 0x3f) 296 fault = new MemAddressNotAligned; 297 ''' |
298 TwinAlignmentFaultCheck = ''' 299 if(RD & 0xe) 300 fault = new IllegalInstruction; 301 else if(EA & 0x1f) 302 fault = new MemAddressNotAligned; 303 ''' |
|
298 # XXX Need to take care of pstate.hpriv as well. The lower ASIs 299 # are split into ones that are available in priv and hpriv, and 300 # those that are only available in hpriv 301 AlternateASIPrivFaultCheck = ''' 302 if(!bits(Pstate,2,2) && !bits(Hpstate,2,2) && !AsiIsUnPriv((ASI)EXT_ASI) || 303 !bits(Hpstate,2,2) && AsiIsHPriv((ASI)EXT_ASI)) 304 fault = new PrivilegedAction; 305 else if(AsiIsAsIfUser((ASI)EXT_ASI) && !bits(Pstate,2,2)) --- 37 unchanged lines hidden --- | 304 # XXX Need to take care of pstate.hpriv as well. The lower ASIs 305 # are split into ones that are available in priv and hpriv, and 306 # those that are only available in hpriv 307 AlternateASIPrivFaultCheck = ''' 308 if(!bits(Pstate,2,2) && !bits(Hpstate,2,2) && !AsiIsUnPriv((ASI)EXT_ASI) || 309 !bits(Hpstate,2,2) && AsiIsHPriv((ASI)EXT_ASI)) 310 fault = new PrivilegedAction; 311 else if(AsiIsAsIfUser((ASI)EXT_ASI) && !bits(Pstate,2,2)) --- 37 unchanged lines hidden --- |