Deleted Added
sdiff udiff text old ( 7171:75996fe47db8 ) new ( 7310:239ab4e0c7d4 )
full compact
1/*
2 * Copyright (c) 2009 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;
9 * redistributions in binary form must reproduce the above copyright

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

28 * Authors: Gabe Black
29 */
30
31#include <assert.h>
32
33#ifndef __ARCH_ARM_INTREGS_HH__
34#define __ARCH_ARM_INTREGS_HH__
35
36namespace ArmISA
37{
38
39enum IntRegIndex
40{
41 /* All the unique register indices. */
42 INTREG_R0,
43 INTREG_R1,

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

317
318static inline IntRegIndex
319INTREG_FIQ(unsigned index)
320{
321 assert(index < NUM_ARCH_INTREGS);
322 return IntRegFiqMap[index];
323}
324
325static inline IntRegIndex
326intRegForceUser(unsigned index)
327{
328 assert(index < NUM_ARCH_INTREGS);
329
330 return index == 15 ? (IntRegIndex)15 : (IntRegIndex)(index + NUM_INTREGS);
331}
332
333}
334
335#endif