base.hh (10537:47fe87b0cf97) base.hh (10664:61a0b02aa800)
1/*
2 * Copyright (c) 2011-2012 ARM Limited
3 * Copyright (c) 2013 Advanced Micro Devices, Inc.
4 * All rights reserved
5 *
6 * The license below extends only to copyright in the software and shall
7 * not be construed as granting a license to any other intellectual
8 * property including but not limited to intellectual property relating

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

444 syscall(int64_t callnum)
445 {
446 if (FullSystem)
447 panic("Syscall emulation isn't available in FS mode.\n");
448
449 thread->syscall(callnum);
450 }
451
1/*
2 * Copyright (c) 2011-2012 ARM Limited
3 * Copyright (c) 2013 Advanced Micro Devices, Inc.
4 * All rights reserved
5 *
6 * The license below extends only to copyright in the software and shall
7 * not be construed as granting a license to any other intellectual
8 * property including but not limited to intellectual property relating

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

444 syscall(int64_t callnum)
445 {
446 if (FullSystem)
447 panic("Syscall emulation isn't available in FS mode.\n");
448
449 thread->syscall(callnum);
450 }
451
452 bool misspeculating() { return thread->misspeculating(); }
453 ThreadContext *tcBase() { return tc; }
454
455 private:
456 TheISA::PCState pred_pc;
457
458 public:
459 // monitor/mwait funtions
460 void armMonitor(Addr address) { BaseCPU::armMonitor(address); }
461 bool mwait(PacketPtr pkt) { return BaseCPU::mwait(pkt); }
462 void mwaitAtomic(ThreadContext *tc)
463 { return BaseCPU::mwaitAtomic(tc, thread->dtb); }
464 AddressMonitor *getAddrMonitor() { return BaseCPU::getCpuAddrMonitor(); }
465};
466
467#endif // __CPU_SIMPLE_BASE_HH__
452 ThreadContext *tcBase() { return tc; }
453
454 private:
455 TheISA::PCState pred_pc;
456
457 public:
458 // monitor/mwait funtions
459 void armMonitor(Addr address) { BaseCPU::armMonitor(address); }
460 bool mwait(PacketPtr pkt) { return BaseCPU::mwait(pkt); }
461 void mwaitAtomic(ThreadContext *tc)
462 { return BaseCPU::mwaitAtomic(tc, thread->dtb); }
463 AddressMonitor *getAddrMonitor() { return BaseCPU::getCpuAddrMonitor(); }
464};
465
466#endif // __CPU_SIMPLE_BASE_HH__