From 1f539f13c32ad5a9187d56a098d4c857639b0e05 Mon Sep 17 00:00:00 2001 From: Alexandru Dutu Date: Sun, 23 Nov 2014 18:01:09 -0800 Subject: mem: Page Table map api modification This patch adds uncacheable/cacheable and read-only/read-write attributes to the map method of PageTableBase. It also modifies the constructor of TlbEntry structs for all architectures to consider the new attributes. --- src/sim/process.hh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/sim/process.hh') diff --git a/src/sim/process.hh b/src/sim/process.hh index d0865f990..85ac8a1d5 100644 --- a/src/sim/process.hh +++ b/src/sim/process.hh @@ -219,19 +219,19 @@ class Process : public SimObject bool fixupStackFault(Addr vaddr); /** - * Map a contiguous range of virtual addresses in this process's + * Maps a contiguous range of virtual addresses in this process's * address space to a contiguous range of physical addresses. - * This function exists primarily to enable exposing the map - * operation to python, so that configuration scripts can set up - * mappings in SE mode. + * This function exists primarily to expose the map operation to + * python, so that configuration scripts can set up mappings in SE mode. * * @param vaddr The starting virtual address of the range. * @param paddr The starting physical address of the range. * @param size The length of the range in bytes. + * @param cacheable Specifies whether accesses are cacheable. * @return True if the map operation was successful. (At this * point in time, the map operation always succeeds.) */ - bool map(Addr vaddr, Addr paddr, int size); + bool map(Addr vaddr, Addr paddr, int size, bool cacheable = true); void serialize(std::ostream &os); void unserialize(Checkpoint *cp, const std::string §ion); -- cgit v1.2.3