utility.hh (6757:d86d3d6e5326) | utility.hh (6759:98101a5f7ee4) |
---|---|
1/* 2 * Copyright (c) 2003-2005 The Regents of The University of Michigan 3 * Copyright (c) 2007-2008 The Florida State University 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions are 8 * met: redistributions of source code must retain the above copyright --- 121 unchanged lines hidden (view full) --- 130 131 static inline bool 132 inUserMode(ThreadContext *tc) 133 { 134 return (tc->readMiscRegNoEffect(MISCREG_CPSR) & 0x1f) == MODE_USER; 135 } 136 137uint64_t getArgument(ThreadContext *tc, int number, bool fp); | 1/* 2 * Copyright (c) 2003-2005 The Regents of The University of Michigan 3 * Copyright (c) 2007-2008 The Florida State University 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions are 8 * met: redistributions of source code must retain the above copyright --- 121 unchanged lines hidden (view full) --- 130 131 static inline bool 132 inUserMode(ThreadContext *tc) 133 { 134 return (tc->readMiscRegNoEffect(MISCREG_CPSR) & 0x1f) == MODE_USER; 135 } 136 137uint64_t getArgument(ThreadContext *tc, int number, bool fp); |
138 139Fault setCp15Register(uint32_t &Rd, int CRn, int opc1, int CRm, int opc2); 140Fault readCp15Register(uint32_t &Rd, int CRn, int opc1, int CRm, int opc2); |
|
138 139}; 140 141 142#endif | 141 142}; 143 144 145#endif |