utility.hh (4826:259b996a6da6) | utility.hh (6283:94c016415053) |
---|---|
1/* 2 * Copyright (c) 2003-2005 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; --- 33 unchanged lines hidden (view full) --- 42{ 43 44 45 uint64_t getArgument(ThreadContext *tc, int number, bool fp); 46 47 static inline bool 48 inUserMode(ThreadContext *tc) 49 { | 1/* 2 * Copyright (c) 2003-2005 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; --- 33 unchanged lines hidden (view full) --- 42{ 43 44 45 uint64_t getArgument(ThreadContext *tc, int number, bool fp); 46 47 static inline bool 48 inUserMode(ThreadContext *tc) 49 { |
50 return !(tc->readMiscRegNoEffect(MISCREG_PSTATE & (1 << 2)) || 51 tc->readMiscRegNoEffect(MISCREG_HPSTATE & (1 << 2))); | 50 return !((tc->readMiscRegNoEffect(MISCREG_PSTATE) & (1 << 2)) || 51 (tc->readMiscRegNoEffect(MISCREG_HPSTATE) & (1 << 2))); |
52 } 53 54 inline bool isCallerSaveIntegerRegister(unsigned int reg) { 55 panic("register classification not implemented"); 56 return false; 57 } 58 59 inline bool isCalleeSaveIntegerRegister(unsigned int reg) { --- 61 unchanged lines hidden --- | 52 } 53 54 inline bool isCallerSaveIntegerRegister(unsigned int reg) { 55 panic("register classification not implemented"); 56 return false; 57 } 58 59 inline bool isCalleeSaveIntegerRegister(unsigned int reg) { --- 61 unchanged lines hidden --- |