OpenCores
URL https://opencores.org/ocsvn/eco32/eco32/trunk

Subversion Repositories eco32

[/] [eco32/] [trunk/] [sim/] [command.c] - Diff between revs 276 and 285

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 276 Rev 285
Line 794... Line 794...
    tlbEntry = mmuGetTLB(index);
    tlbEntry = mmuGetTLB(index);
    if (strcmp(tokens[2], "p") == 0) {
    if (strcmp(tokens[2], "p") == 0) {
      tlbEntry.page = data & PAGE_MASK;
      tlbEntry.page = data & PAGE_MASK;
    } else
    } else
    if (strcmp(tokens[2], "f") == 0) {
    if (strcmp(tokens[2], "f") == 0) {
      tlbEntry.frame = data & PAGE_MASK;
      tlbEntry.frame = data & FRAME_MASK;
      tlbEntry.write = data & TLB_WRITE ? true : false;
      tlbEntry.write = data & TLB_WRITE ? true : false;
      tlbEntry.valid = data & TLB_VALID ? true : false;
      tlbEntry.valid = data & TLB_VALID ? true : false;
    } else {
    } else {
      cPrintf("TLB selector is not one of 'p' or 'f'\n");
      cPrintf("TLB selector is not one of 'p' or 'f'\n");
      return;
      return;

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.