1 //
2 // Copyright (c) 2010-2021 Antmicro
3 //
4 // This file is licensed under the MIT License.
5 // Full license text is available in 'licenses/MIT.txt'.
6 //
7 using System;
8 
9 namespace Antmicro.Renode.Peripherals.CPU
10 {
11     public struct NonstandardCSR
12     {
NonstandardCSRAntmicro.Renode.Peripherals.CPU.NonstandardCSR13         public NonstandardCSR(Func<ulong> readOperation, Action<ulong> writeOperation, string name) : this()
14         {
15             this.ReadOperation = readOperation;
16             this.WriteOperation = writeOperation;
17             this.Name = name;
18         }
19 
20         public Func<ulong> ReadOperation { get; }
21         public Action<ulong> WriteOperation { get; }
22         public string Name { get; }
23     }
24 }
25