utility.cc (7678:f19b6a3a8cec) utility.cc (7693:f1db1000d957)
1/*
2 * Copyright (c) 2007 MIPS Technologies, Inc.
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;

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

47
48
49using namespace MipsISA;
50using namespace std;
51
52namespace MipsISA {
53
54uint64_t
1/*
2 * Copyright (c) 2007 MIPS Technologies, Inc.
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;

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

47
48
49using namespace MipsISA;
50using namespace std;
51
52namespace MipsISA {
53
54uint64_t
55getArgument(ThreadContext *tc, int number, bool fp)
55getArgument(ThreadContext *tc, int &number, uint8_t size, bool fp)
56{
57#if FULL_SYSTEM
58 if (number < 4) {
59 if (fp)
60 return tc->readFloatRegBits(FirstArgumentReg + number);
61 else
62 return tc->readIntReg(FirstArgumentReg + number);
63 } else {

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

259 panic("Copy Regs Not Implemented Yet\n");
260}
261
262void
263copyMiscRegs(ThreadContext *src, ThreadContext *dest)
264{
265 panic("Copy Misc. Regs Not Implemented Yet\n");
266}
56{
57#if FULL_SYSTEM
58 if (number < 4) {
59 if (fp)
60 return tc->readFloatRegBits(FirstArgumentReg + number);
61 else
62 return tc->readIntReg(FirstArgumentReg + number);
63 } else {

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

259 panic("Copy Regs Not Implemented Yet\n");
260}
261
262void
263copyMiscRegs(ThreadContext *src, ThreadContext *dest)
264{
265 panic("Copy Misc. Regs Not Implemented Yet\n");
266}
267void
268skipFunction(ThreadContext *tc)
269{
270 Addr newpc = tc->readIntReg(ReturnAddressReg);
271 tc->setPC(newpc);
272 tc->setNextPC(tc->readPC() + sizeof(TheISA::MachInst));
273 tc->setNextPC(tc->readNextPC() + sizeof(TheISA::MachInst));
274}
267
275
276
268} // namespace MipsISA
277} // namespace MipsISA