realview.cc (7750:0731d632db76) | realview.cc (8525:5f3fe76e7950) |
---|---|
1/* 2 * Copyright (c) 2009 ARM Limited 3 * All rights reserved 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software --- 36 unchanged lines hidden (view full) --- 45 */ 46 47#include <deque> 48#include <string> 49#include <vector> 50 51#include "config/the_isa.hh" 52#include "cpu/intr_control.hh" | 1/* 2 * Copyright (c) 2009 ARM Limited 3 * All rights reserved 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software --- 36 unchanged lines hidden (view full) --- 45 */ 46 47#include <deque> 48#include <string> 49#include <vector> 50 51#include "config/the_isa.hh" 52#include "cpu/intr_control.hh" |
53#include "dev/arm/gic.hh" |
|
53#include "dev/arm/realview.hh" 54#include "dev/terminal.hh" 55#include "sim/system.hh" 56 57using namespace std; 58using namespace TheISA; 59 60RealView::RealView(const Params *p) --- 22 unchanged lines hidden (view full) --- 83{ 84 warn_once("Don't know what interrupt to clear for console.\n"); 85 //panic("Need implementation\n"); 86} 87 88void 89RealView::postPciInt(int line) 90{ | 54#include "dev/arm/realview.hh" 55#include "dev/terminal.hh" 56#include "sim/system.hh" 57 58using namespace std; 59using namespace TheISA; 60 61RealView::RealView(const Params *p) --- 22 unchanged lines hidden (view full) --- 84{ 85 warn_once("Don't know what interrupt to clear for console.\n"); 86 //panic("Need implementation\n"); 87} 88 89void 90RealView::postPciInt(int line) 91{ |
91 panic("Need implementation\n"); | 92 gic->sendInt(line); |
92} 93 94void 95RealView::clearPciInt(int line) 96{ | 93} 94 95void 96RealView::clearPciInt(int line) 97{ |
97 panic("Need implementation\n"); | 98 gic->clearInt(line); |
98} 99 100Addr 101RealView::pciToDma(Addr pciAddr) const 102{ | 99} 100 101Addr 102RealView::pciToDma(Addr pciAddr) const 103{ |
103 panic("Need implementation\n"); 104 M5_DUMMY_RETURN | 104 return pciAddr; |
105} 106 107 108Addr 109RealView::calcPciConfigAddr(int bus, int dev, int func) 110{ | 105} 106 107 108Addr 109RealView::calcPciConfigAddr(int bus, int dev, int func) 110{ |
111 return ULL(-1); | 111 if (bus != 0) 112 return ULL(-1); 113 return params()->pci_cfg_base | ((func & 7) << 16) | ((dev & 0x1f) << 19); |
112} 113 114Addr 115RealView::calcPciIOAddr(Addr addr) 116{ 117 return addr; 118} 119 120Addr 121RealView::calcPciMemAddr(Addr addr) 122{ | 114} 115 116Addr 117RealView::calcPciIOAddr(Addr addr) 118{ 119 return addr; 120} 121 122Addr 123RealView::calcPciMemAddr(Addr addr) 124{ |
123 panic("Need implementation\n"); 124 M5_DUMMY_RETURN | 125 return addr; |
125} 126 127RealView * 128RealViewParams::create() 129{ 130 return new RealView(this); 131} | 126} 127 128RealView * 129RealViewParams::create() 130{ 131 return new RealView(this); 132} |