allocPhysPages function in System


I am trying to implement a custom physical allocation for which I need to modify the allocPhysPages() function in the System class. There is this section of code in that function

 AddrRange m5opRange(0xffff0000, 0x100000000);
    if (m5opRange.contains(next_return_addr)) {
        warn("Reached m5ops MMIO region\n");
        return_addr = 0xffffffff;
        pagePtr_arr[chiplet_id] = 0xffffffff >> PageShift;

My question is can I comment out this section of code which checks if the allocated physical address is in the MMIO region or not. I don't want to take care of the MMIO region to reduce the complexity. If I comment this out then would it lead to any kind of failure during simulation?

Note: allocPhysPages() is located in src/sim/


0 Answers

Nobody has answered this question yet.

User contributions licensed under CC BY-SA 3.0