diff --git a/emulation/README.md b/emulation/README.md index 2bd50ae5e..d93ac505e 100644 --- a/emulation/README.md +++ b/emulation/README.md @@ -19,8 +19,8 @@ Since there is no external compiler, it can be difficult to know if your code is Fortunately, Visual Studio Code is free and has excellent C# tooling. All you need to do is point it at your Renode installation, load the C# plugin, and open a `.cs` file. 1. Copy `peripherals.csproj.template` to `peripherals.csproj` -2. Open `peripherals.csproj` and point `` to your Renode installation directory -3. Install [C# for VSCode](vscode:extension/ms-dotnettools.csharp) +2. Open `peripherals.csproj` and point `` to your Renode installation directory. On ubuntu, this may be `/opt/renode/bin/`. +3. Install [C# for VSCode](https://marketplace.visualstudio.com/items?itemName=ms-dotnettools.csharp) 4. You can refer to [core Renode peripherals](https://github.com/renode/renode-infrastructure/tree/master/src/Emulator/Peripherals/Peripherals) as examples of what C# code looks like. ## Debugging with GDB diff --git a/emulation/peripherals/engine.cs b/emulation/peripherals/engine.cs index e3911eb5e..de4529275 100644 --- a/emulation/peripherals/engine.cs +++ b/emulation/peripherals/engine.cs @@ -455,6 +455,12 @@ namespace Antmicro.Renode.Peripherals.Miscellaneous this.illegalOpcodeStatus = true; throw new Exception("Unhandled opcode"); } + //this.Log(LogLevel.Error, "RAM[0x{0:X}] {1}\n Ra:{2:x}\n Rb:{3:x}\n W:{4:x}", this.mpc, op, + // this.engineRam.ReadRegister(op.Ra, op.Ca), + // this.engineRam.ReadRegister(op.Rb, op.Cb), + // this.engineRam.ReadRegister(op.Wd, false) + //); + // Interlocked.Increment(ref this.mpc); this.mpc += 1; if (op.Op == 10)