C++ Device API Reference Manual
Reference documentation for the Simics C++ Device API.
 
Loading...
Searching...
No Matches
value-accessor-interface.h
Go to the documentation of this file.
1// -*- mode: C++; c-file-style: "virtutech-c++" -*-
2
3/*
4 © 2022 Intel Corporation
5
6 This software and the related documents are Intel copyrighted materials, and
7 your use of them is governed by the express license under which they were
8 provided to you ("License"). Unless the License provides otherwise, you may
9 not use, modify, copy, publish, distribute, disclose or transmit this software
10 or the related documents without Intel's prior written permission.
11
12 This software and the related documents are provided as is, with no express or
13 implied warranties, other than those that are expressly stated in the License.
14*/
15
16#ifndef SIMICS_VALUE_ACCESSOR_INTERFACE_H
17#define SIMICS_VALUE_ACCESSOR_INTERFACE_H
18
19#include <cstdint>
20
21namespace simics {
22
23// access value of a register/field
25 public:
26 virtual ~ValueAccessorInterface() = default;
27
28 // retrieve value of register or field, without side-effects. For
29 // inspection and checkpointing.
30 virtual uint64_t get() const = 0;
31
32 // retrieve value of register or field, with side-effects. For
33 // IO operation.
34 // @param enabled_bits defines which bits is accessed, as a bitmask
35 virtual uint64_t read(uint64_t enabled_bits) = 0;
36};
37
38} // namespace simics
39
40#endif
Definition: value-accessor-interface.h:24
virtual ~ValueAccessorInterface()=default
virtual uint64_t get() const =0
virtual uint64_t read(uint64_t enabled_bits)=0
Definition: after-bank.h:33