system.hh (5299:e61b9f2a9732) system.hh (5334:5136aad50b97)
1/*
2 * Copyright (c) 2007 The Hewlett-Packard Development Company
3 * All rights reserved.
4 *
5 * Redistribution and use of this software in source and binary forms,
6 * with or without modification, are permitted provided that the
7 * following conditions are met:
8 *

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

63
64#include "base/loader/symtab.hh"
65#include "cpu/pc_event.hh"
66#include "kern/system_events.hh"
67#include "params/X86System.hh"
68#include "sim/sim_object.hh"
69#include "sim/system.hh"
70
1/*
2 * Copyright (c) 2007 The Hewlett-Packard Development Company
3 * All rights reserved.
4 *
5 * Redistribution and use of this software in source and binary forms,
6 * with or without modification, are permitted provided that the
7 * following conditions are met:
8 *

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

63
64#include "base/loader/symtab.hh"
65#include "cpu/pc_event.hh"
66#include "kern/system_events.hh"
67#include "params/X86System.hh"
68#include "sim/sim_object.hh"
69#include "sim/system.hh"
70
71namespace X86ISA
72{
73 namespace SMBios
74 {
75 class SMBiosTable;
76 }
77}
78
71class X86System : public System
72{
73 public:
74 typedef X86SystemParams Params;
75 X86System(Params *p);
76 ~X86System();
77
78/**
79 * Serialization stuff
80 */
81 public:
82 void serialize(std::ostream &os);
83 void unserialize(Checkpoint *cp, const std::string &section);
84
85 void startup();
86
87 protected:
79class X86System : public System
80{
81 public:
82 typedef X86SystemParams Params;
83 X86System(Params *p);
84 ~X86System();
85
86/**
87 * Serialization stuff
88 */
89 public:
90 void serialize(std::ostream &os);
91 void unserialize(Checkpoint *cp, const std::string &section);
92
93 void startup();
94
95 protected:
96
97 X86ISA::SMBios::SMBiosTable * smbiosTable;
98
99 void writeOutSMBiosTable(Addr header, Addr table = 0);
100
88 const Params *params() const { return (const Params *)_params; }
89
90 virtual Addr fixFuncEventAddr(Addr addr)
91 {
92 //XXX This may eventually have to do something useful.
93 return addr;
94 }
95};
96
97#endif
98
101 const Params *params() const { return (const Params *)_params; }
102
103 virtual Addr fixFuncEventAddr(Addr addr)
104 {
105 //XXX This may eventually have to do something useful.
106 return addr;
107 }
108};
109
110#endif
111