blob: db112f1546c6a75c47bd5b2f5b645cff6436aaca [file] [log] [blame]
using Antmicro.Renode.Core;
using Antmicro.Renode.Logging;
using Antmicro.Renode.Peripherals.Bus;
// All this stub does is mark an address range as always returning a fixed
// value.
namespace Antmicro.Renode.Peripherals
{
public class AddressRangeStub : IDoubleWordPeripheral, IKnownSize
{
public AddressRangeStub(long size, uint value)
{
this.size = size;
this.value = value;
}
public void Reset()
{
}
public uint ReadDoubleWord(long offset)
{
return this.value;
}
public void WriteDoubleWord(long offset, uint value)
{
}
public long Size { get { return this.size; } }
long size;
uint value;
}
}