NOVA User-Level Environment  Version testbox/changed-memory-timing-317-g320d8b5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
simplemem.h File Reference

SimpleMemoryAccess template. More...

Functions

bool copy_inout (unsigned long address, void *ptr, unsigned count, bool read)
 Fast copy/inout version that only copies to mem-regions but not registers.
bool copy_out (unsigned long address, void *ptr, unsigned count)
 Copy from buffer to the guest.
bool copy_in (unsigned long address, void *ptr, unsigned count)
 Copy from the guest to a buffer.

Variables

DBus< MessageMemRegion > * _bus_memregion
DBus< MessageMem > * _bus_mem

Detailed Description

SimpleMemoryAccess template.

Copyright (C) 2010, Bernhard Kauer bk@vm.nosp@m.mon..nosp@m.org Economic rights: Technische Universitaet Dresden (Germany)

This file is part of Vancouver.

Vancouver is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation.

Vancouver is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License version 2 for more details.

Function Documentation

bool copy_in ( unsigned long  address,
void *  ptr,
unsigned  count 
)

Copy from the guest to a buffer.

bool copy_inout ( unsigned long  address,
void *  ptr,
unsigned  count,
bool  read 
)

Fast copy/inout version that only copies to mem-regions but not registers.

bool copy_out ( unsigned long  address,
void *  ptr,
unsigned  count 
)

Copy from buffer to the guest.

Variable Documentation

DBus<MessageMem>* _bus_mem
DBus<MessageMemRegion>* _bus_memregion