util.isa (8607:5fb918115c07) | util.isa (8778:fbaf6af0be93) |
---|---|
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 --- 312 unchanged lines hidden (view full) --- 321 !asiIsUnPriv((ASI)EXT_ASI)) || 322 (!bits(Hpstate,2,2) && asiIsHPriv((ASI)EXT_ASI))) 323 fault = new PrivilegedAction; 324 else if (asiIsAsIfUser((ASI)EXT_ASI) && !bits(Pstate,2,2)) 325 fault = new PrivilegedAction; 326 ''' 327 328 TruncateEA = ''' | 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 --- 312 unchanged lines hidden (view full) --- 321 !asiIsUnPriv((ASI)EXT_ASI)) || 322 (!bits(Hpstate,2,2) && asiIsHPriv((ASI)EXT_ASI))) 323 fault = new PrivilegedAction; 324 else if (asiIsAsIfUser((ASI)EXT_ASI) && !bits(Pstate,2,2)) 325 fault = new PrivilegedAction; 326 ''' 327 328 TruncateEA = ''' |
329 if (!FULL_SYSTEM) 330 EA = Pstate<3:> ? EA<31:0> : EA; | 329 if (!FullSystem) 330 EA = Pstate<3:> ? EA<31:0> : EA; |
331 ''' 332}}; 333 334// A simple function to generate the name of the macro op of a certain 335// instruction at a certain micropc 336let {{ 337 def makeMicroName(name, microPc): 338 return name + "::" + name + "_" + str(microPc) --- 28 unchanged lines hidden --- | 331 ''' 332}}; 333 334// A simple function to generate the name of the macro op of a certain 335// instruction at a certain micropc 336let {{ 337 def makeMicroName(name, microPc): 338 return name + "::" + name + "_" + str(microPc) --- 28 unchanged lines hidden --- |