dtod.cc (11793:ef606668d247) | dtod.cc (12624:145fd7b3d0cf) |
---|---|
1/* 2 * Copyright (c) 2004-2006 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; --- 27 unchanged lines hidden (view full) --- 36#include <sys/time.h> 37 38#include <deque> 39#include <string> 40#include <vector> 41 42#include "base/time.hh" 43#include "base/trace.hh" | 1/* 2 * Copyright (c) 2004-2006 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; --- 27 unchanged lines hidden (view full) --- 36#include <sys/time.h> 37 38#include <deque> 39#include <string> 40#include <vector> 41 42#include "base/time.hh" 43#include "base/trace.hh" |
44#include "config/the_isa.hh" | |
45#include "dev/platform.hh" 46#include "mem/packet_access.hh" 47#include "mem/port.hh" 48#include "sim/system.hh" 49 50using namespace std; | 44#include "dev/platform.hh" 45#include "mem/packet_access.hh" 46#include "mem/port.hh" 47#include "sim/system.hh" 48 49using namespace std; |
51using namespace TheISA; | |
52 53DumbTOD::DumbTOD(const Params *p) 54 : BasicPioDevice(p, 0x08) 55{ 56 struct tm tm = p->time; 57 todTime = mkutctime(&tm); 58 59 DPRINTFN("Real-time clock set to %s\n", asctime(&tm)); --- 39 unchanged lines hidden --- | 50 51DumbTOD::DumbTOD(const Params *p) 52 : BasicPioDevice(p, 0x08) 53{ 54 struct tm tm = p->time; 55 todTime = mkutctime(&tm); 56 57 DPRINTFN("Real-time clock set to %s\n", asctime(&tm)); --- 39 unchanged lines hidden --- |