asi.cc (4103:785279436bdd) asi.cc (4191:c191c1fec061)
1/*
2 * Copyright (c) 2006 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 233 unchanged lines hidden (view full) ---

242 return
243 (asi == ASI_SCRATCHPAD) ||
244 (asi == ASI_HYP_SCRATCHPAD);
245 }
246
247 bool AsiIsCmt(ASI asi)
248 {
249 return
1/*
2 * Copyright (c) 2006 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 233 unchanged lines hidden (view full) ---

242 return
243 (asi == ASI_SCRATCHPAD) ||
244 (asi == ASI_HYP_SCRATCHPAD);
245 }
246
247 bool AsiIsCmt(ASI asi)
248 {
249 return
250 (asi == ASI_CMT_PER_STRAND);
250 (asi == ASI_CMT_PER_STRAND) ||
251 (asi == ASI_CMT_SHARED);
251 }
252
253 bool AsiIsQueue(ASI asi)
254 {
255 return asi == ASI_QUEUE;
256 }
257
258 bool AsiIsInterrupt(ASI asi)

--- 31 unchanged lines hidden (view full) ---

290 bool AsiIsHPriv(ASI asi)
291 {
292 return asi >= 0x30 && asi <= 0x7f;
293 }
294
295 bool AsiIsReg(ASI asi)
296 {
297 return AsiIsMmu(asi) || AsiIsScratchPad(asi) ||
252 }
253
254 bool AsiIsQueue(ASI asi)
255 {
256 return asi == ASI_QUEUE;
257 }
258
259 bool AsiIsInterrupt(ASI asi)

--- 31 unchanged lines hidden (view full) ---

291 bool AsiIsHPriv(ASI asi)
292 {
293 return asi >= 0x30 && asi <= 0x7f;
294 }
295
296 bool AsiIsReg(ASI asi)
297 {
298 return AsiIsMmu(asi) || AsiIsScratchPad(asi) ||
298 AsiIsSparcError(asi) || AsiIsInterrupt(asi);
299 AsiIsSparcError(asi) || AsiIsInterrupt(asi)
300 || AsiIsCmt(asi);
299 }
300
301 bool AsiIsSparcError(ASI asi)
302 {
303 return asi == ASI_SPARC_ERROR_EN_REG ||
304 asi == ASI_SPARC_ERROR_STATUS_REG;
305 }
306
307}
301 }
302
303 bool AsiIsSparcError(ASI asi)
304 {
305 return asi == ASI_SPARC_ERROR_EN_REG ||
306 asi == ASI_SPARC_ERROR_STATUS_REG;
307 }
308
309}