X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=src%2Fdev%2Fplatform.hh;h=a3f2398657d0654469053cde39c9cd1ed913edc3;hb=23755eb43428845737aa514314f1bd0ace5d5372;hp=fc556787dc8d5f9ca0adcb213c51defa45f57857;hpb=3205768ea57b4e2f75561eebb39671045a6d6746;p=gem5.git diff --git a/src/dev/platform.hh b/src/dev/platform.hh index fc556787d..a3f239865 100644 --- a/src/dev/platform.hh +++ b/src/dev/platform.hh @@ -40,9 +40,8 @@ #include #include -#include "sim/sim_object.hh" -#include "arch/isa_traits.hh" #include "params/Platform.hh" +#include "sim/sim_object.hh" class PciConfigAll; class IntrControl; @@ -69,7 +68,9 @@ class Platform : public SimObject virtual void postPciInt(int line); virtual void clearPciInt(int line); virtual Addr pciToDma(Addr pciAddr) const; - virtual Addr calcConfigAddr(int bus, int dev, int func) = 0; + virtual Addr calcPciConfigAddr(int bus, int dev, int func) = 0; + virtual Addr calcPciIOAddr(Addr addr) = 0; + virtual Addr calcPciMemAddr(Addr addr) = 0; virtual void registerPciDevice(uint8_t bus, uint8_t dev, uint8_t func, uint8_t intr);