@@ -0,0 +1,456 @@
+package net.katsuster.ememu.riscv.core.reg;%0A%0Aimport net.katsuster.ememu.generic.*;%0Aimport net.katsuster.ememu.riscv.core.*;%0A%0Apublic class RegHartid64 extends Reg64 %7B%0A    private RV64 core;%0A%0A    public RegHartid64(String name, long val, RV64 c) %7B%0A        super(name, 0);%0A%0A        core = c;%0A    %7D%0A%0A    @Override%0A    public long getValue() %7B%0A        return core.getThreadID();%0A    %7D%0A%0A    @Override%0A    public void setValue(long v) %7B%0A        // Ignore%0A    %7D%0A%7D%0A

add hartid register