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" |
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{ |
92 gic->sendInt(line); |
93} 94 95void 96RealView::clearPciInt(int line) 97{ |
98 gic->clearInt(line); |
99} 100 101Addr 102RealView::pciToDma(Addr pciAddr) const 103{ |
104 return pciAddr; |
105} 106 107 108Addr 109RealView::calcPciConfigAddr(int bus, int dev, int func) 110{ |
111 if (bus != 0) 112 return ULL(-1); 113 return params()->pci_cfg_base | ((func & 7) << 16) | ((dev & 0x1f) << 19); |
114} 115 116Addr 117RealView::calcPciIOAddr(Addr addr) 118{ 119 return addr; 120} 121 122Addr 123RealView::calcPciMemAddr(Addr addr) 124{ |
125 return addr; |
126} 127 128RealView * 129RealViewParams::create() 130{ 131 return new RealView(this); 132} |