From b19dadd1c60c2497bc87dcf2c8d35abf82afa97b Mon Sep 17 00:00:00 2001 From: Sean Cross Date: Fri, 23 Apr 2021 13:58:01 +0800 Subject: [PATCH] emulation: trng_server: fix trng register addresses This swaps the STATUS and DATA registers, which were incorrectly created. Signed-off-by: Sean Cross --- emulation/peripherals/trng_server.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/emulation/peripherals/trng_server.cs b/emulation/peripherals/trng_server.cs index 43892a27d..24bacb043 100644 --- a/emulation/peripherals/trng_server.cs +++ b/emulation/peripherals/trng_server.cs @@ -39,8 +39,8 @@ namespace Antmicro.Renode.Peripherals.Miscellaneous private enum Registers { CONTROL = 0x0, - STATUS = 0x4, - DATA = 0x8, + STATUS = 0x8, + DATA = 0x4, AV_CONFIG = 0xc, RO_CONFIG = 0x10, ERRORS = 0x14,