fix cast error in renode

For some reason renode is now complaining about a C# error where
a (ulong) cannot be cast to a (uint) type without an explicit
type cast.

This fixes that error. Seems to work ok.
This commit is contained in:
bunnie 2023-05-07 16:03:31 +08:00
parent a4cdcd7fe6
commit f36d0d8d03

View file

@ -27,7 +27,7 @@ namespace Antmicro.Renode.Peripherals.Miscellaneous.Betrusted
private void DefineRegisters()
{
Registers.ADDRESS.Define(this)
.WithValueField(0, 8, writeCallback: (_, value) => { this.address = value; }, valueProviderCallback: _ => { return this.address; })
.WithValueField(0, 8, writeCallback: (_, value) => { this.address = value; }, valueProviderCallback: _ => { return (uint) this.address; })
;
Registers.DATA.Define(this)