kern: Replace an explicitly instantiated port proxy with one from the tc.
authorGabe Black <gabeblack@google.com>
Thu, 2 May 2019 07:58:23 +0000 (00:58 -0700)
committerGabe Black <gabeblack@google.com>
Thu, 30 May 2019 14:20:03 +0000 (14:20 +0000)
That avoids having to know what type of proxy to create.

Change-Id: I311e770ab720061b52f29df0dcc2273e028aa34a
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/18578
Tested-by: kokoro <noreply+kokoro@google.com>
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
Reviewed-by: Brandon Potter <Brandon.Potter@amd.com>
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Maintainer: Andreas Sandberg <andreas.sandberg@arm.com>

src/kern/linux/helpers.cc

index ed58427ec22d3a678220f6752ac4df048b50529e..e514ef8b3687683a5ceaa8a2c4516e1da1513ae5 100644 (file)
@@ -94,7 +94,7 @@ Linux::dumpDmesg(ThreadContext *tc, std::ostream &os)
 {
     System *system = tc->getSystemPtr();
     const SymbolTable *symtab = system->kernelSymtab;
-    FSTranslatingPortProxy proxy(tc);
+    PortProxy &proxy = tc->getVirtProxy();
 
     Addr addr_lb = 0, addr_lb_len = 0, addr_first = 0, addr_next = 0;
     const bool found_symbols =