utility.hh (5569:baeee670d4ce) utility.hh (5570:13592d41f290)
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;

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

48{
49 return (tc->readMiscRegNoEffect(IPR_DTB_CM) & 0x18) != 0;
50}
51
52inline bool
53isCallerSaveIntegerRegister(unsigned int reg)
54{
55 panic("register classification not implemented");
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;

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

48{
49 return (tc->readMiscRegNoEffect(IPR_DTB_CM) & 0x18) != 0;
50}
51
52inline bool
53isCallerSaveIntegerRegister(unsigned int reg)
54{
55 panic("register classification not implemented");
56 return (reg >= 1 && reg <= 8 || reg >= 22 && reg <= 25 || reg == 27);
56 return (reg >= 1 && reg <= 8) || (reg >= 22 && reg <= 25) || reg == 27;
57}
58
59inline bool
60isCalleeSaveIntegerRegister(unsigned int reg)
61{
62 panic("register classification not implemented");
57}
58
59inline bool
60isCalleeSaveIntegerRegister(unsigned int reg)
61{
62 panic("register classification not implemented");
63 return (reg >= 9 && reg <= 15);
63 return reg >= 9 && reg <= 15;
64}
65
66inline bool
67isCallerSaveFloatRegister(unsigned int reg)
68{
69 panic("register classification not implemented");
70 return false;
71}

--- 97 unchanged lines hidden ---
64}
65
66inline bool
67isCallerSaveFloatRegister(unsigned int reg)
68{
69 panic("register classification not implemented");
70 return false;
71}

--- 97 unchanged lines hidden ---