[gem5-users] Single Step Support in x86

2020-10-27 Thread Deepak Mohan via gem5-users
Hi, Is single stepping supported in gem5 x86 (by setting the Trap Flag in RFLAGS register) ? I was working with an educational OS that runs on gem5, and was trying to add a single step feature to it. But when I set the Trap flag in the RFLAGS saved on stack and called IRETQ instruction, it seems

[gem5-users] RISCV Interrupts

2021-01-02 Thread Deepak Mohan via gem5-users
Hi, I was trying to implement a baremetal OS for the RISCV architecture, that runs on gem5. I have a few doubts regarding the implementation of RISCV Interrupts in gem5. 1) The privileged ISA spec (section 3.1.6.1) says that : Interrupts for lower-privilege modes,

[gem5-users] Making an address range uncacheable RISCV FS.

2021-06-15 Thread Deepak Mohan via gem5-users
Hi, I was writing an OS that can run on RISC-V FS mode in gem5. I want to make certain address ranges uncacheable (for some memory mapped devices). RISCV page table entries doesn't provide any flags to achieve this. The proper way to do this in RISCV seems to be using PMA (Physical Memory

[gem5-users] Fwd: Making an address range uncacheable RISCV FS.

2021-06-16 Thread Deepak Mohan via gem5-users
how this can be used in the gem5 config script: > > https://gem5.googlesource.com/public/gem5-resources/+/refs/heads/develop/src/riscv-fs/configs-riscv-fs/system/system.py#214 > > -Ayaz > > On Tue, Jun 15, 2021 at 1:23 PM Deepak Mohan via gem5-users > wrote: >> >> Hi, &

[gem5-users] Power calculation for RISCV full system simulation.

2021-06-12 Thread Deepak Mohan via gem5-users
Hi, I wanted to compute the power consumption for a RISCV full system simulation using McPAT. It would be great if anyone can give some pointers towards how to do this, like what are the important parameters that has to be given as input to McPAT to get reasonable values for power consumption.

[gem5-users] Making virtual address range of a PIO device uncacheable in x86 FS simulation.

2021-06-17 Thread Deepak Mohan via gem5-users
Hi, I'm doing some experiments using gem5 FS mode for x86. In the FS mode I'm running a custom OS written for the requirements of my experiment. I have added a PIO device to the x86 system which responds to reads and writes to an address range. In the OS I have mapped this device to a range in

[gem5-users] [gem5 version 20.1.0.5] Writing to satp in RISCV FS mode causes error when L1 caches are added.

2021-06-18 Thread Deepak Mohan via gem5-users
Hi, I'm working on an older version of gem5 (20.1.0.5), in which I run a RISCV full system simulation, I have added a minimal platform in this version of gem5 to run the FS simulation, but when I add cache hierarchy to the simulation the following error occurs after writing to the satp CSR. void

[gem5-users] Re: Shutdown x86 Full System simulation

2021-03-11 Thread Deepak Mohan via gem5-users
le. > > Gabe > > On Wed, Mar 10, 2021 at 2:07 AM Deepak Mohan via gem5-users > wrote: >> >> Hi, >> I was implementing an x86 operating system that runs on gem5 >> simulator. I have to implement the shutdown functionality for the OS. >> From my initial

[gem5-users] Shutdown x86 Full System simulation

2021-03-10 Thread Deepak Mohan via gem5-users
Hi, I was implementing an x86 operating system that runs on gem5 simulator. I have to implement the shutdown functionality for the OS. >From my initial research I found out that I have to use the ACPI for implementing shutdown (using outw(PM1a_CNT, SLP_TYPa | SLP_EN ); ). But the values of