stacktrace.cc (11793:ef606668d247) stacktrace.cc (12644:ee5e0c83e7fb)
1/*
2 * Copyright (c) 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;

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

138{
139 tc = _tc;
140
141 System *sys = tc->getSystemPtr();
142
143 bool usermode =
144 (tc->readMiscRegNoEffect(IPR_DTB_CM) & 0x18) != 0;
145
1/*
2 * Copyright (c) 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;

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

138{
139 tc = _tc;
140
141 System *sys = tc->getSystemPtr();
142
143 bool usermode =
144 (tc->readMiscRegNoEffect(IPR_DTB_CM) & 0x18) != 0;
145
146 Addr pc = tc->pcState().pc();
146 Addr pc = tc->pcState().npc();
147 bool kernel = sys->kernelStart <= pc && pc <= sys->kernelEnd;
148
149 if (usermode) {
150 stack.push_back(user);
151 return;
152 }
153
154 if (!kernel) {

--- 210 unchanged lines hidden ---
147 bool kernel = sys->kernelStart <= pc && pc <= sys->kernelEnd;
148
149 if (usermode) {
150 stack.push_back(user);
151 return;
152 }
153
154 if (!kernel) {

--- 210 unchanged lines hidden ---