intdev.cc (8711:c7e14f52c682) intdev.cc (8851:7e966326ef5b)
1/*
2 * Copyright (c) 2008 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;

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

46 delete pkt;
47 }
48 }
49}
50
51void
52X86ISA::IntDev::init()
53{
1/*
2 * Copyright (c) 2008 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;

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

46 delete pkt;
47 }
48 }
49}
50
51void
52X86ISA::IntDev::init()
53{
54 if (!intPort) {
54 if (!intPort.isConnected()) {
55 panic("Int port not connected to anything!");
56 }
55 panic("Int port not connected to anything!");
56 }
57 intPort->sendRangeChange();
57 intPort.sendRangeChange();
58}
59
60X86ISA::IntSourcePin *
61X86IntSourcePinParams::create()
62{
63 return new X86ISA::IntSourcePin(this);
64}
65
66X86ISA::IntSinkPin *
67X86IntSinkPinParams::create()
68{
69 return new X86ISA::IntSinkPin(this);
70}
71
72X86ISA::IntLine *
73X86IntLineParams::create()
74{
75 return new X86ISA::IntLine(this);
76}
58}
59
60X86ISA::IntSourcePin *
61X86IntSourcePinParams::create()
62{
63 return new X86ISA::IntSourcePin(this);
64}
65
66X86ISA::IntSinkPin *
67X86IntSinkPinParams::create()
68{
69 return new X86ISA::IntSinkPin(this);
70}
71
72X86ISA::IntLine *
73X86IntLineParams::create()
74{
75 return new X86ISA::IntLine(this);
76}