malta.cc (8739:925f15f96322) malta.cc (8741:491297d019f3)
1/*
2 * Copyright (c) 2004-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;

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

49#include "sim/system.hh"
50
51using namespace std;
52using namespace TheISA;
53
54Malta::Malta(const Params *p)
55 : Platform(p), system(p->system)
56{
1/*
2 * Copyright (c) 2004-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;

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

49#include "sim/system.hh"
50
51using namespace std;
52using namespace TheISA;
53
54Malta::Malta(const Params *p)
55 : Platform(p), system(p->system)
56{
57#if FULL_SYSTEM //XXX No platform pointer on the system object in SE mode.
58 // set the back pointer from the system to myself
59 system->platform = this;
60#endif
61
62 for (int i = 0; i < Malta::Max_CPUs; i++)
63 intr_sum_type[i] = 0;
64}
65
57 for (int i = 0; i < Malta::Max_CPUs; i++)
58 intr_sum_type[i] = 0;
59}
60
66Tick
67Malta::intrFrequency()
68{
69 return io->frequency();
70}
71
72void
73Malta::postConsoleInt()
74{
75 //see {Linux-src}/arch/mips/mips-boards/sim/sim_setup.c
76 io->postIntr(0x10/*HW4*/);
77}
78
79void

--- 41 unchanged lines hidden ---
61void
62Malta::postConsoleInt()
63{
64 //see {Linux-src}/arch/mips/mips-boards/sim/sim_setup.c
65 io->postIntr(0x10/*HW4*/);
66}
67
68void

--- 41 unchanged lines hidden ---