├── .gitignore ├── .idea ├── .gitignore ├── misc.xml ├── modules.xml ├── temu.iml └── vcs.xml ├── CMakeLists.txt ├── README.md ├── images └── temuArch.png ├── include ├── cache.h ├── decode.h ├── machine.h ├── mmu.h ├── parameters.h ├── perf.h ├── plic-simple.h ├── port │ ├── console.h │ ├── load_binary.h │ ├── lock.h │ ├── main_memory.h │ ├── os_yield_cpu.h │ ├── port_main.h │ └── system_timer.h ├── tlb.h ├── trap.h ├── uart8250.h └── zicsr.h ├── patches ├── linux │ ├── 0001-riscv-add-have-kernel-compression-algorithms-selects.patch │ ├── 0002-configs-add-.config-which-produces-the-2.3MiB-kernel.patch │ ├── 0003-configs-remove-kernel-compression-and-enable-MMU-and.patch │ ├── 0004-riscv-llep-disable-detection-of-misaligned-mem-acces.patch │ ├── 0005-serial-8250-add-skip-autoconfig-flag-and-cancel-loop.patch │ ├── 0006-configs-add-built-in-initramfs-options.patch │ ├── 0007-Revert-serial-8250-add-skip-autoconfig-flag-and-canc.patch │ └── 0008-serial-8250-skip-autoconfig-on-the-ns16550a-driver.patch ├── opensbi │ ├── 0001-platform-add-platform-Low-speed-Linux-Experimental-P.patch │ ├── 0002-llep-add-defconfig.patch │ ├── 0003-llep-remove-unused-aclint-and-plic-temporarily.patch │ ├── 0004-llep-set-up-fw_jump-to-have-firmware-output.patch │ ├── 0005-llep-opensbi-should-run-in-ram-which-starts-at-0x020.patch │ ├── 0006-llep-fix-the-fw_jump_addr-setting.patch │ ├── 0007-llep-specify-the-risc-v-isa-to-rv32ima_zicsr_zifence.patch │ ├── 0008-llep-set-FW_JUMP_ADDR-to-0x0300_0000.patch │ ├── 0009-llep-set-fw_jump-address-to-0x02004b00-due-to-the-ra.patch │ ├── 0010-llep-pass-fdt-address-0x02048800.patch │ ├── 0011-llep-set-text-start-to-0x80dc0000.patch │ └── 0012-llep-set-fw-text-start-to-0x80fa0000.patch └── u-boot │ ├── 0001-board-add-new-board-low-speed-linux-experimental-pla.patch │ ├── 0002-configs-add-support-for-llep.patch │ ├── 0003-configs-enlarge-the-malloc-f-len-set-up-dtc-with-emb.patch │ ├── 0004-dts-add-device-tree-support-for-llep-with-uart-enabl.patch │ ├── 0005-dts-add-bootph-all-to-uart-node-to-avoid-skipping-th.patch │ ├── 0006-dts-add-cpus-memory-and-timer-node-to-support-initca.patch │ ├── 0007-configs-set-RISCV_SMODE_TIMER_FREQ-10kHz-to-support-.patch │ ├── 0008-configs-lower-the-size-of-console-buffers-to-avoid-c.patch │ ├── 0009-cli-allow-users-to-disable-history-if-unused-at-all.patch │ ├── 0010-cli-allow-users-to-determine-history-buffer-allocati.patch │ ├── 0011-llep-set-the-uboot-start-address-to-0x0204_b000.patch │ ├── 0012-llep-use-seperate-fdt-which-locates-0x02048800.patch │ ├── 0013-llep-configs-set-RAM-base-address-at-0x80000000-and-.patch │ ├── 0014-dts-update-llep.dts-to-set-bootargs-and-memory-node.patch │ ├── 0015-dts-update-llep-device-tree-nodes.patch │ ├── 0016-llep-configs-set-the-init-sp-to-correct-place-and-en.patch │ ├── 0017-dts-llep-support-thead-plic-and-uart-external-interr.patch │ └── 0018-llep-configs-set-sdram-size-to-32MiB.patch ├── src ├── cache.c ├── decode.c ├── machine.c ├── main.c ├── mmu.c ├── peripherals │ ├── plic-simple.c │ └── uart8250.c ├── port │ ├── console.c │ ├── load_binary.c │ ├── lock.c │ ├── main_memory.c │ ├── os_yield_cpu.c │ ├── port_main.c │ └── system_timer.c ├── tlb.c ├── trap.c └── zicsr.c ├── test ├── bare-metal │ ├── Makefile │ ├── bare-metal.LD │ ├── determinant.c │ ├── ieee754.c │ ├── start.S │ ├── test1.c │ └── test2.c ├── isa │ ├── Makefile │ ├── add.S │ ├── addi.S │ ├── amoadd_w.S │ ├── amoand_w.S │ ├── amomax_w.S │ ├── amomaxu_w.S │ ├── amomin_w.S │ ├── amominu_w.S │ ├── amoor_w.S │ ├── amoswap_w.S │ ├── amoxor_w.S │ ├── and.S │ ├── andi.S │ ├── auipc.S │ ├── beq.S │ ├── bge.S │ ├── bgeu.S │ ├── blt.S │ ├── bltu.S │ ├── bne.S │ ├── csr.S │ ├── div.S │ ├── divu.S │ ├── encoding.h │ ├── jal.S │ ├── jalr.S │ ├── lb.S │ ├── lbu.S │ ├── lh.S │ ├── lhu.S │ ├── link.LD │ ├── lrsc.S │ ├── lui.S │ ├── lw.S │ ├── mi_scall.S │ ├── mul.S │ ├── mulh.S │ ├── mulhsu.S │ ├── mulhu.S │ ├── rem.S │ ├── remu.S │ ├── riscv_test.h │ ├── sb.S │ ├── sh.S │ ├── sll.S │ ├── slli.S │ ├── slt.S │ ├── sltu.S │ ├── sra.S │ ├── srai.S │ ├── srl.S │ ├── srli.S │ ├── sub.S │ ├── sw.S │ ├── test_macros.h │ └── xor.S └── vm │ ├── Makefile │ ├── entry.S │ ├── lb.S │ ├── link.ld │ ├── p_riscv_test.h │ ├── riscv_test.h │ ├── string.c │ ├── test_macros.h │ └── vm.c └── util ├── DiffTestServer.py └── csrIndexGen.py /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxzsxxk/temu/HEAD/.gitignore -------------------------------------------------------------------------------- /.idea/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxzsxxk/temu/HEAD/.idea/.gitignore -------------------------------------------------------------------------------- /.idea/misc.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxzsxxk/temu/HEAD/.idea/misc.xml -------------------------------------------------------------------------------- /.idea/modules.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxzsxxk/temu/HEAD/.idea/modules.xml -------------------------------------------------------------------------------- /.idea/temu.iml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxzsxxk/temu/HEAD/.idea/temu.iml -------------------------------------------------------------------------------- /.idea/vcs.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxzsxxk/temu/HEAD/.idea/vcs.xml -------------------------------------------------------------------------------- /CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxzsxxk/temu/HEAD/CMakeLists.txt -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxzsxxk/temu/HEAD/README.md -------------------------------------------------------------------------------- /images/temuArch.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxzsxxk/temu/HEAD/images/temuArch.png -------------------------------------------------------------------------------- /include/cache.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxzsxxk/temu/HEAD/include/cache.h -------------------------------------------------------------------------------- /include/decode.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxzsxxk/temu/HEAD/include/decode.h -------------------------------------------------------------------------------- /include/machine.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxzsxxk/temu/HEAD/include/machine.h -------------------------------------------------------------------------------- /include/mmu.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxzsxxk/temu/HEAD/include/mmu.h -------------------------------------------------------------------------------- /include/parameters.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxzsxxk/temu/HEAD/include/parameters.h -------------------------------------------------------------------------------- /include/perf.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxzsxxk/temu/HEAD/include/perf.h -------------------------------------------------------------------------------- /include/plic-simple.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxzsxxk/temu/HEAD/include/plic-simple.h -------------------------------------------------------------------------------- /include/port/console.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxzsxxk/temu/HEAD/include/port/console.h -------------------------------------------------------------------------------- /include/port/load_binary.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxzsxxk/temu/HEAD/include/port/load_binary.h -------------------------------------------------------------------------------- /include/port/lock.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxzsxxk/temu/HEAD/include/port/lock.h -------------------------------------------------------------------------------- /include/port/main_memory.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxzsxxk/temu/HEAD/include/port/main_memory.h -------------------------------------------------------------------------------- /include/port/os_yield_cpu.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxzsxxk/temu/HEAD/include/port/os_yield_cpu.h -------------------------------------------------------------------------------- /include/port/port_main.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxzsxxk/temu/HEAD/include/port/port_main.h -------------------------------------------------------------------------------- /include/port/system_timer.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxzsxxk/temu/HEAD/include/port/system_timer.h -------------------------------------------------------------------------------- /include/tlb.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxzsxxk/temu/HEAD/include/tlb.h -------------------------------------------------------------------------------- /include/trap.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxzsxxk/temu/HEAD/include/trap.h -------------------------------------------------------------------------------- /include/uart8250.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxzsxxk/temu/HEAD/include/uart8250.h -------------------------------------------------------------------------------- /include/zicsr.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxzsxxk/temu/HEAD/include/zicsr.h -------------------------------------------------------------------------------- /patches/linux/0001-riscv-add-have-kernel-compression-algorithms-selects.patch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxzsxxk/temu/HEAD/patches/linux/0001-riscv-add-have-kernel-compression-algorithms-selects.patch -------------------------------------------------------------------------------- /patches/linux/0002-configs-add-.config-which-produces-the-2.3MiB-kernel.patch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxzsxxk/temu/HEAD/patches/linux/0002-configs-add-.config-which-produces-the-2.3MiB-kernel.patch -------------------------------------------------------------------------------- /patches/linux/0003-configs-remove-kernel-compression-and-enable-MMU-and.patch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxzsxxk/temu/HEAD/patches/linux/0003-configs-remove-kernel-compression-and-enable-MMU-and.patch -------------------------------------------------------------------------------- /patches/linux/0004-riscv-llep-disable-detection-of-misaligned-mem-acces.patch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxzsxxk/temu/HEAD/patches/linux/0004-riscv-llep-disable-detection-of-misaligned-mem-acces.patch -------------------------------------------------------------------------------- /patches/linux/0005-serial-8250-add-skip-autoconfig-flag-and-cancel-loop.patch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxzsxxk/temu/HEAD/patches/linux/0005-serial-8250-add-skip-autoconfig-flag-and-cancel-loop.patch -------------------------------------------------------------------------------- /patches/linux/0006-configs-add-built-in-initramfs-options.patch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxzsxxk/temu/HEAD/patches/linux/0006-configs-add-built-in-initramfs-options.patch -------------------------------------------------------------------------------- /patches/linux/0007-Revert-serial-8250-add-skip-autoconfig-flag-and-canc.patch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxzsxxk/temu/HEAD/patches/linux/0007-Revert-serial-8250-add-skip-autoconfig-flag-and-canc.patch -------------------------------------------------------------------------------- /patches/linux/0008-serial-8250-skip-autoconfig-on-the-ns16550a-driver.patch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxzsxxk/temu/HEAD/patches/linux/0008-serial-8250-skip-autoconfig-on-the-ns16550a-driver.patch -------------------------------------------------------------------------------- /patches/opensbi/0001-platform-add-platform-Low-speed-Linux-Experimental-P.patch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxzsxxk/temu/HEAD/patches/opensbi/0001-platform-add-platform-Low-speed-Linux-Experimental-P.patch -------------------------------------------------------------------------------- /patches/opensbi/0002-llep-add-defconfig.patch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxzsxxk/temu/HEAD/patches/opensbi/0002-llep-add-defconfig.patch -------------------------------------------------------------------------------- /patches/opensbi/0003-llep-remove-unused-aclint-and-plic-temporarily.patch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxzsxxk/temu/HEAD/patches/opensbi/0003-llep-remove-unused-aclint-and-plic-temporarily.patch -------------------------------------------------------------------------------- /patches/opensbi/0004-llep-set-up-fw_jump-to-have-firmware-output.patch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxzsxxk/temu/HEAD/patches/opensbi/0004-llep-set-up-fw_jump-to-have-firmware-output.patch -------------------------------------------------------------------------------- /patches/opensbi/0005-llep-opensbi-should-run-in-ram-which-starts-at-0x020.patch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxzsxxk/temu/HEAD/patches/opensbi/0005-llep-opensbi-should-run-in-ram-which-starts-at-0x020.patch -------------------------------------------------------------------------------- /patches/opensbi/0006-llep-fix-the-fw_jump_addr-setting.patch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxzsxxk/temu/HEAD/patches/opensbi/0006-llep-fix-the-fw_jump_addr-setting.patch -------------------------------------------------------------------------------- /patches/opensbi/0007-llep-specify-the-risc-v-isa-to-rv32ima_zicsr_zifence.patch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxzsxxk/temu/HEAD/patches/opensbi/0007-llep-specify-the-risc-v-isa-to-rv32ima_zicsr_zifence.patch -------------------------------------------------------------------------------- /patches/opensbi/0008-llep-set-FW_JUMP_ADDR-to-0x0300_0000.patch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxzsxxk/temu/HEAD/patches/opensbi/0008-llep-set-FW_JUMP_ADDR-to-0x0300_0000.patch -------------------------------------------------------------------------------- /patches/opensbi/0009-llep-set-fw_jump-address-to-0x02004b00-due-to-the-ra.patch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxzsxxk/temu/HEAD/patches/opensbi/0009-llep-set-fw_jump-address-to-0x02004b00-due-to-the-ra.patch -------------------------------------------------------------------------------- /patches/opensbi/0010-llep-pass-fdt-address-0x02048800.patch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxzsxxk/temu/HEAD/patches/opensbi/0010-llep-pass-fdt-address-0x02048800.patch -------------------------------------------------------------------------------- /patches/opensbi/0011-llep-set-text-start-to-0x80dc0000.patch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxzsxxk/temu/HEAD/patches/opensbi/0011-llep-set-text-start-to-0x80dc0000.patch -------------------------------------------------------------------------------- /patches/opensbi/0012-llep-set-fw-text-start-to-0x80fa0000.patch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxzsxxk/temu/HEAD/patches/opensbi/0012-llep-set-fw-text-start-to-0x80fa0000.patch -------------------------------------------------------------------------------- /patches/u-boot/0001-board-add-new-board-low-speed-linux-experimental-pla.patch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxzsxxk/temu/HEAD/patches/u-boot/0001-board-add-new-board-low-speed-linux-experimental-pla.patch -------------------------------------------------------------------------------- /patches/u-boot/0002-configs-add-support-for-llep.patch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxzsxxk/temu/HEAD/patches/u-boot/0002-configs-add-support-for-llep.patch -------------------------------------------------------------------------------- /patches/u-boot/0003-configs-enlarge-the-malloc-f-len-set-up-dtc-with-emb.patch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxzsxxk/temu/HEAD/patches/u-boot/0003-configs-enlarge-the-malloc-f-len-set-up-dtc-with-emb.patch -------------------------------------------------------------------------------- /patches/u-boot/0004-dts-add-device-tree-support-for-llep-with-uart-enabl.patch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxzsxxk/temu/HEAD/patches/u-boot/0004-dts-add-device-tree-support-for-llep-with-uart-enabl.patch -------------------------------------------------------------------------------- /patches/u-boot/0005-dts-add-bootph-all-to-uart-node-to-avoid-skipping-th.patch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxzsxxk/temu/HEAD/patches/u-boot/0005-dts-add-bootph-all-to-uart-node-to-avoid-skipping-th.patch -------------------------------------------------------------------------------- /patches/u-boot/0006-dts-add-cpus-memory-and-timer-node-to-support-initca.patch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxzsxxk/temu/HEAD/patches/u-boot/0006-dts-add-cpus-memory-and-timer-node-to-support-initca.patch -------------------------------------------------------------------------------- /patches/u-boot/0007-configs-set-RISCV_SMODE_TIMER_FREQ-10kHz-to-support-.patch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxzsxxk/temu/HEAD/patches/u-boot/0007-configs-set-RISCV_SMODE_TIMER_FREQ-10kHz-to-support-.patch -------------------------------------------------------------------------------- /patches/u-boot/0008-configs-lower-the-size-of-console-buffers-to-avoid-c.patch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxzsxxk/temu/HEAD/patches/u-boot/0008-configs-lower-the-size-of-console-buffers-to-avoid-c.patch -------------------------------------------------------------------------------- /patches/u-boot/0009-cli-allow-users-to-disable-history-if-unused-at-all.patch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxzsxxk/temu/HEAD/patches/u-boot/0009-cli-allow-users-to-disable-history-if-unused-at-all.patch -------------------------------------------------------------------------------- /patches/u-boot/0010-cli-allow-users-to-determine-history-buffer-allocati.patch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxzsxxk/temu/HEAD/patches/u-boot/0010-cli-allow-users-to-determine-history-buffer-allocati.patch -------------------------------------------------------------------------------- /patches/u-boot/0011-llep-set-the-uboot-start-address-to-0x0204_b000.patch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxzsxxk/temu/HEAD/patches/u-boot/0011-llep-set-the-uboot-start-address-to-0x0204_b000.patch -------------------------------------------------------------------------------- /patches/u-boot/0012-llep-use-seperate-fdt-which-locates-0x02048800.patch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxzsxxk/temu/HEAD/patches/u-boot/0012-llep-use-seperate-fdt-which-locates-0x02048800.patch -------------------------------------------------------------------------------- /patches/u-boot/0013-llep-configs-set-RAM-base-address-at-0x80000000-and-.patch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxzsxxk/temu/HEAD/patches/u-boot/0013-llep-configs-set-RAM-base-address-at-0x80000000-and-.patch -------------------------------------------------------------------------------- /patches/u-boot/0014-dts-update-llep.dts-to-set-bootargs-and-memory-node.patch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxzsxxk/temu/HEAD/patches/u-boot/0014-dts-update-llep.dts-to-set-bootargs-and-memory-node.patch -------------------------------------------------------------------------------- /patches/u-boot/0015-dts-update-llep-device-tree-nodes.patch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxzsxxk/temu/HEAD/patches/u-boot/0015-dts-update-llep-device-tree-nodes.patch -------------------------------------------------------------------------------- /patches/u-boot/0016-llep-configs-set-the-init-sp-to-correct-place-and-en.patch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxzsxxk/temu/HEAD/patches/u-boot/0016-llep-configs-set-the-init-sp-to-correct-place-and-en.patch -------------------------------------------------------------------------------- /patches/u-boot/0017-dts-llep-support-thead-plic-and-uart-external-interr.patch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxzsxxk/temu/HEAD/patches/u-boot/0017-dts-llep-support-thead-plic-and-uart-external-interr.patch -------------------------------------------------------------------------------- /patches/u-boot/0018-llep-configs-set-sdram-size-to-32MiB.patch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxzsxxk/temu/HEAD/patches/u-boot/0018-llep-configs-set-sdram-size-to-32MiB.patch -------------------------------------------------------------------------------- /src/cache.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxzsxxk/temu/HEAD/src/cache.c -------------------------------------------------------------------------------- /src/decode.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxzsxxk/temu/HEAD/src/decode.c -------------------------------------------------------------------------------- /src/machine.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxzsxxk/temu/HEAD/src/machine.c -------------------------------------------------------------------------------- /src/main.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxzsxxk/temu/HEAD/src/main.c -------------------------------------------------------------------------------- /src/mmu.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxzsxxk/temu/HEAD/src/mmu.c -------------------------------------------------------------------------------- /src/peripherals/plic-simple.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxzsxxk/temu/HEAD/src/peripherals/plic-simple.c -------------------------------------------------------------------------------- /src/peripherals/uart8250.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxzsxxk/temu/HEAD/src/peripherals/uart8250.c -------------------------------------------------------------------------------- /src/port/console.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxzsxxk/temu/HEAD/src/port/console.c -------------------------------------------------------------------------------- /src/port/load_binary.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxzsxxk/temu/HEAD/src/port/load_binary.c -------------------------------------------------------------------------------- /src/port/lock.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxzsxxk/temu/HEAD/src/port/lock.c -------------------------------------------------------------------------------- /src/port/main_memory.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxzsxxk/temu/HEAD/src/port/main_memory.c -------------------------------------------------------------------------------- /src/port/os_yield_cpu.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxzsxxk/temu/HEAD/src/port/os_yield_cpu.c -------------------------------------------------------------------------------- /src/port/port_main.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxzsxxk/temu/HEAD/src/port/port_main.c -------------------------------------------------------------------------------- /src/port/system_timer.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxzsxxk/temu/HEAD/src/port/system_timer.c -------------------------------------------------------------------------------- /src/tlb.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxzsxxk/temu/HEAD/src/tlb.c -------------------------------------------------------------------------------- /src/trap.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxzsxxk/temu/HEAD/src/trap.c -------------------------------------------------------------------------------- /src/zicsr.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxzsxxk/temu/HEAD/src/zicsr.c -------------------------------------------------------------------------------- /test/bare-metal/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxzsxxk/temu/HEAD/test/bare-metal/Makefile -------------------------------------------------------------------------------- /test/bare-metal/bare-metal.LD: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxzsxxk/temu/HEAD/test/bare-metal/bare-metal.LD -------------------------------------------------------------------------------- /test/bare-metal/determinant.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxzsxxk/temu/HEAD/test/bare-metal/determinant.c -------------------------------------------------------------------------------- /test/bare-metal/ieee754.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxzsxxk/temu/HEAD/test/bare-metal/ieee754.c -------------------------------------------------------------------------------- /test/bare-metal/start.S: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxzsxxk/temu/HEAD/test/bare-metal/start.S -------------------------------------------------------------------------------- /test/bare-metal/test1.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxzsxxk/temu/HEAD/test/bare-metal/test1.c -------------------------------------------------------------------------------- /test/bare-metal/test2.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxzsxxk/temu/HEAD/test/bare-metal/test2.c -------------------------------------------------------------------------------- /test/isa/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxzsxxk/temu/HEAD/test/isa/Makefile -------------------------------------------------------------------------------- /test/isa/add.S: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxzsxxk/temu/HEAD/test/isa/add.S -------------------------------------------------------------------------------- /test/isa/addi.S: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxzsxxk/temu/HEAD/test/isa/addi.S -------------------------------------------------------------------------------- /test/isa/amoadd_w.S: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxzsxxk/temu/HEAD/test/isa/amoadd_w.S -------------------------------------------------------------------------------- /test/isa/amoand_w.S: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxzsxxk/temu/HEAD/test/isa/amoand_w.S -------------------------------------------------------------------------------- /test/isa/amomax_w.S: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxzsxxk/temu/HEAD/test/isa/amomax_w.S -------------------------------------------------------------------------------- /test/isa/amomaxu_w.S: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxzsxxk/temu/HEAD/test/isa/amomaxu_w.S -------------------------------------------------------------------------------- /test/isa/amomin_w.S: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxzsxxk/temu/HEAD/test/isa/amomin_w.S -------------------------------------------------------------------------------- /test/isa/amominu_w.S: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxzsxxk/temu/HEAD/test/isa/amominu_w.S -------------------------------------------------------------------------------- /test/isa/amoor_w.S: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxzsxxk/temu/HEAD/test/isa/amoor_w.S -------------------------------------------------------------------------------- /test/isa/amoswap_w.S: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxzsxxk/temu/HEAD/test/isa/amoswap_w.S -------------------------------------------------------------------------------- /test/isa/amoxor_w.S: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxzsxxk/temu/HEAD/test/isa/amoxor_w.S -------------------------------------------------------------------------------- /test/isa/and.S: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxzsxxk/temu/HEAD/test/isa/and.S -------------------------------------------------------------------------------- /test/isa/andi.S: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxzsxxk/temu/HEAD/test/isa/andi.S -------------------------------------------------------------------------------- /test/isa/auipc.S: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxzsxxk/temu/HEAD/test/isa/auipc.S -------------------------------------------------------------------------------- /test/isa/beq.S: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxzsxxk/temu/HEAD/test/isa/beq.S -------------------------------------------------------------------------------- /test/isa/bge.S: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxzsxxk/temu/HEAD/test/isa/bge.S -------------------------------------------------------------------------------- /test/isa/bgeu.S: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxzsxxk/temu/HEAD/test/isa/bgeu.S -------------------------------------------------------------------------------- /test/isa/blt.S: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxzsxxk/temu/HEAD/test/isa/blt.S -------------------------------------------------------------------------------- /test/isa/bltu.S: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxzsxxk/temu/HEAD/test/isa/bltu.S -------------------------------------------------------------------------------- /test/isa/bne.S: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxzsxxk/temu/HEAD/test/isa/bne.S -------------------------------------------------------------------------------- /test/isa/csr.S: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxzsxxk/temu/HEAD/test/isa/csr.S -------------------------------------------------------------------------------- /test/isa/div.S: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxzsxxk/temu/HEAD/test/isa/div.S -------------------------------------------------------------------------------- /test/isa/divu.S: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxzsxxk/temu/HEAD/test/isa/divu.S -------------------------------------------------------------------------------- /test/isa/encoding.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxzsxxk/temu/HEAD/test/isa/encoding.h -------------------------------------------------------------------------------- /test/isa/jal.S: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxzsxxk/temu/HEAD/test/isa/jal.S -------------------------------------------------------------------------------- /test/isa/jalr.S: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxzsxxk/temu/HEAD/test/isa/jalr.S -------------------------------------------------------------------------------- /test/isa/lb.S: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxzsxxk/temu/HEAD/test/isa/lb.S -------------------------------------------------------------------------------- /test/isa/lbu.S: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxzsxxk/temu/HEAD/test/isa/lbu.S -------------------------------------------------------------------------------- /test/isa/lh.S: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxzsxxk/temu/HEAD/test/isa/lh.S -------------------------------------------------------------------------------- /test/isa/lhu.S: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxzsxxk/temu/HEAD/test/isa/lhu.S -------------------------------------------------------------------------------- /test/isa/link.LD: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxzsxxk/temu/HEAD/test/isa/link.LD -------------------------------------------------------------------------------- /test/isa/lrsc.S: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxzsxxk/temu/HEAD/test/isa/lrsc.S -------------------------------------------------------------------------------- /test/isa/lui.S: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxzsxxk/temu/HEAD/test/isa/lui.S -------------------------------------------------------------------------------- /test/isa/lw.S: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxzsxxk/temu/HEAD/test/isa/lw.S -------------------------------------------------------------------------------- /test/isa/mi_scall.S: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxzsxxk/temu/HEAD/test/isa/mi_scall.S -------------------------------------------------------------------------------- /test/isa/mul.S: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxzsxxk/temu/HEAD/test/isa/mul.S -------------------------------------------------------------------------------- /test/isa/mulh.S: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxzsxxk/temu/HEAD/test/isa/mulh.S -------------------------------------------------------------------------------- /test/isa/mulhsu.S: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxzsxxk/temu/HEAD/test/isa/mulhsu.S -------------------------------------------------------------------------------- /test/isa/mulhu.S: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxzsxxk/temu/HEAD/test/isa/mulhu.S -------------------------------------------------------------------------------- /test/isa/rem.S: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxzsxxk/temu/HEAD/test/isa/rem.S -------------------------------------------------------------------------------- /test/isa/remu.S: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxzsxxk/temu/HEAD/test/isa/remu.S -------------------------------------------------------------------------------- /test/isa/riscv_test.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxzsxxk/temu/HEAD/test/isa/riscv_test.h -------------------------------------------------------------------------------- /test/isa/sb.S: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxzsxxk/temu/HEAD/test/isa/sb.S -------------------------------------------------------------------------------- /test/isa/sh.S: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxzsxxk/temu/HEAD/test/isa/sh.S -------------------------------------------------------------------------------- /test/isa/sll.S: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxzsxxk/temu/HEAD/test/isa/sll.S -------------------------------------------------------------------------------- /test/isa/slli.S: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxzsxxk/temu/HEAD/test/isa/slli.S -------------------------------------------------------------------------------- /test/isa/slt.S: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxzsxxk/temu/HEAD/test/isa/slt.S -------------------------------------------------------------------------------- /test/isa/sltu.S: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxzsxxk/temu/HEAD/test/isa/sltu.S -------------------------------------------------------------------------------- /test/isa/sra.S: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxzsxxk/temu/HEAD/test/isa/sra.S -------------------------------------------------------------------------------- /test/isa/srai.S: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxzsxxk/temu/HEAD/test/isa/srai.S -------------------------------------------------------------------------------- /test/isa/srl.S: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxzsxxk/temu/HEAD/test/isa/srl.S -------------------------------------------------------------------------------- /test/isa/srli.S: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxzsxxk/temu/HEAD/test/isa/srli.S -------------------------------------------------------------------------------- /test/isa/sub.S: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxzsxxk/temu/HEAD/test/isa/sub.S -------------------------------------------------------------------------------- /test/isa/sw.S: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxzsxxk/temu/HEAD/test/isa/sw.S -------------------------------------------------------------------------------- /test/isa/test_macros.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxzsxxk/temu/HEAD/test/isa/test_macros.h -------------------------------------------------------------------------------- /test/isa/xor.S: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxzsxxk/temu/HEAD/test/isa/xor.S -------------------------------------------------------------------------------- /test/vm/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxzsxxk/temu/HEAD/test/vm/Makefile -------------------------------------------------------------------------------- /test/vm/entry.S: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxzsxxk/temu/HEAD/test/vm/entry.S -------------------------------------------------------------------------------- /test/vm/lb.S: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxzsxxk/temu/HEAD/test/vm/lb.S -------------------------------------------------------------------------------- /test/vm/link.ld: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxzsxxk/temu/HEAD/test/vm/link.ld -------------------------------------------------------------------------------- /test/vm/p_riscv_test.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxzsxxk/temu/HEAD/test/vm/p_riscv_test.h -------------------------------------------------------------------------------- /test/vm/riscv_test.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxzsxxk/temu/HEAD/test/vm/riscv_test.h -------------------------------------------------------------------------------- /test/vm/string.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxzsxxk/temu/HEAD/test/vm/string.c -------------------------------------------------------------------------------- /test/vm/test_macros.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxzsxxk/temu/HEAD/test/vm/test_macros.h -------------------------------------------------------------------------------- /test/vm/vm.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxzsxxk/temu/HEAD/test/vm/vm.c -------------------------------------------------------------------------------- /util/DiffTestServer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxzsxxk/temu/HEAD/util/DiffTestServer.py -------------------------------------------------------------------------------- /util/csrIndexGen.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gtxzsxxk/temu/HEAD/util/csrIndexGen.py --------------------------------------------------------------------------------