Skip to content

mie.LCOFIE is not implemented correctly #246

@fly-1011

Description

@fly-1011

Bug Description:

Bit 13 of the mie register is LCOFIE.

The RISCV specification is as follows:

If the Sscofpmf extension is implemented, bits mip.LCOFIP and mie.LCOFIE are the interrupt-pending
and interrupt-enable bits for local-counter-overflow interrupts. LCOFIP is read-write in mip and reflects
the occurrence of a local counter-overflow overflow interrupt request resulting from any of the
mhpmeventn.OF bits being set. If the Sscofpmf extension is not implemented, mip.LCOFIP and
mie.LCOFIE are read-only zeros.

The NutShell processor does not implement the Sscofpmf extension, therefore bit 13 of the mie should be read-only zero. Furthermore, testing confirmed that mip.LCOFIP is implemented correctly.

Test program and log information: test_mie.zip

Inconsistent information:

Image Image

Environment:

NutShell: commit e315a27

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions