Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into patch_sysplugs_vanilla
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilippvK committed Jul 4, 2024
2 parents 1ec1d8a + 3f5c1d7 commit a398efb
Show file tree
Hide file tree
Showing 195 changed files with 801 additions and 13,450 deletions.
34 changes: 17 additions & 17 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
name: ${{ matrix.config.name }}_build

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Requirements (Linux)
if: matrix.config.name == 'Linux'
Expand Down Expand Up @@ -117,7 +117,7 @@ jobs:
run: tar -C ${{runner.workspace}} -cvf ${{runner.workspace}}/etiss.tar install

- name: Upload Compiled System
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: etiss-${{matrix.config.name}}.tar
path: ${{runner.workspace}}/etiss.tar
Expand All @@ -136,7 +136,7 @@ jobs:

steps:
- name: Fetch Compiled System
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
with:
name: etiss-${{matrix.config.name}}.tar
path: ${{runner.workspace}}
Expand Down Expand Up @@ -206,7 +206,7 @@ jobs:

steps:
- name: Fetch Compiled System
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
with:
name: etiss-Linux.tar
path: ${{runner.workspace}}
Expand All @@ -230,7 +230,7 @@ jobs:
mv ${{runner.workspace}}/results/run.json ${{runner.workspace}}/results/run_${{matrix.jit-engine}}_${{matrix.run-no}}.json
- name: Save Benchmark Results
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: run_${{matrix.jit-engine}}_${{matrix.run-no}}.json
path: ${{runner.workspace}}/results/run_${{matrix.jit-engine}}_${{matrix.run-no}}.json
Expand All @@ -240,10 +240,10 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Fetch results
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
with:
path: artifacts

Expand All @@ -258,7 +258,7 @@ jobs:
run: pip install -r script/requirements.txt

- name: get old benchmark results
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
ref: benchmark_results
path: benchmark_results_old
Expand Down Expand Up @@ -287,27 +287,27 @@ jobs:
enable_jekyll: true

- name: uploading benchmark_results
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: stats_file.json

path: benchmark_results_old/stats_file.json

- name: uploading image
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: performance_metrics.svg
path: results_/performance_metrics.svg

- name: Upload comment text
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: issue.md

path: results_/issue.md

- name: Upload wiki text
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: wiki.md
path: results_/wiki.md
Expand All @@ -319,7 +319,7 @@ jobs:
#
# steps:
# - name: Get comment text
# uses: actions/download-artifact@v2
# uses: actions/download-artifact@v4
# with:
# name: issue.md
#
Expand Down Expand Up @@ -362,7 +362,7 @@ jobs:

steps:
- name: Get comment text
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
with:
name: issue.md

Expand Down Expand Up @@ -407,12 +407,12 @@ jobs:

steps:
- name: Get comment text
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
with:
name: wiki.md

- name: Get performance_metrics.svg
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
with:
name: performance_metrics.svg

Expand All @@ -438,7 +438,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Delete Artifact
uses: geekyeggo/delete-artifact@v2
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:

runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Requirements
run: |
Expand Down Expand Up @@ -51,13 +51,13 @@ jobs:
run: cmake --build . --config $BUILD_TYPE --target doc

- name: Setup Pages
uses: actions/configure-pages@v1
uses: actions/configure-pages@v4

- name: Upload artifact
uses: actions/upload-pages-artifact@v1
uses: actions/upload-pages-artifact@v3
with:
path: ${{runner.workspace}}/build/doc/html

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1
uses: actions/deploy-pages@v4
2 changes: 1 addition & 1 deletion ArchImpl/RV32IMACFD/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Generated on Tue, 28 Nov 2023 09:45:19 +0100.
# Generated on Wed, 08 May 2024 17:36:07 +0200.
#
# This file contains the CMake build info for the RV32IMACFD core architecture.

Expand Down
2 changes: 1 addition & 1 deletion ArchImpl/RV32IMACFD/RV32IMACFD.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Generated on Tue, 28 Nov 2023 09:45:19 +0100.
* Generated on Wed, 08 May 2024 17:36:07 +0200.
*
* This file contains the registers for the RV32IMACFD core architecture.
*/
Expand Down
27 changes: 14 additions & 13 deletions ArchImpl/RV32IMACFD/RV32IMACFDArch.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Generated on Tue, 28 Nov 2023 09:45:19 +0100.
* Generated on Wed, 08 May 2024 17:36:07 +0200.
*
* This file contains the architecture class for the RV32IMACFD core architecture.
*/
Expand Down Expand Up @@ -41,7 +41,7 @@
using namespace etiss ;
using namespace etiss::instr ;

RV32IMACFDArch::RV32IMACFDArch():CPUArch("RV32IMACFD")
RV32IMACFDArch::RV32IMACFDArch(unsigned int coreno):CPUArch("RV32IMACFD"), coreno_(coreno)
{
headers_.insert("Arch/RV32IMACFD/RV32IMACFD.h");
}
Expand Down Expand Up @@ -166,17 +166,18 @@ void RV32IMACFDArch::resetCPU(ETISS_CPU * cpu,etiss::uint64 * startpointer)
rv32imacfdcpu->CSR[772] = &rv32imacfdcpu->MIE;
rv32imacfdcpu->CSR[836] = &rv32imacfdcpu->MIP;

rv32imacfdcpu->PRIV = 3;
rv32imacfdcpu->DPC = 0;
*rv32imacfdcpu->CSR[0] = 11;
*rv32imacfdcpu->CSR[256] = 11;
*rv32imacfdcpu->CSR[768] = 11;
*rv32imacfdcpu->CSR[769] = 1075056941;
*rv32imacfdcpu->CSR[3088] = 3;
*rv32imacfdcpu->CSR[772] = 4294966203;
*rv32imacfdcpu->CSR[260] = 4294964019;
*rv32imacfdcpu->CSR[4] = 4294963473;
rv32imacfdcpu->RES_ADDR = -1;
rv32imacfdcpu->PRIV = 3ULL;
rv32imacfdcpu->DPC = 0LL;
*rv32imacfdcpu->CSR[0] = 11ULL;
*rv32imacfdcpu->CSR[256] = 11ULL;
*rv32imacfdcpu->CSR[768] = 11ULL;
*rv32imacfdcpu->CSR[769] = 1075056941ULL;
*rv32imacfdcpu->CSR[3088] = 3ULL;
*rv32imacfdcpu->CSR[772] = 4294966203ULL;
*rv32imacfdcpu->CSR[260] = 4294964019ULL;
*rv32imacfdcpu->CSR[4] = 4294963473ULL;
rv32imacfdcpu->RES_ADDR = -1LL;

}

void RV32IMACFDArch::deleteCPU(ETISS_CPU *cpu)
Expand Down
5 changes: 3 additions & 2 deletions ArchImpl/RV32IMACFD/RV32IMACFDArch.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Generated on Tue, 28 Nov 2023 09:45:19 +0100.
* Generated on Wed, 08 May 2024 17:36:07 +0200.
*
* This file contains the architecture class for the RV32IMACFD core architecture.
*/
Expand Down Expand Up @@ -28,7 +28,7 @@ extern etiss::instr::InstructionCollection RV32IMACFDISA;
class RV32IMACFDArch : public etiss::CPUArch {

public:
RV32IMACFDArch();
RV32IMACFDArch(unsigned int);

virtual const std::set<std::string> & getListenerSupportedRegisters();

Expand Down Expand Up @@ -104,5 +104,6 @@ class RV32IMACFDArch : public etiss::CPUArch {
std::set<std::string> listenerSupportedRegisters_;
std::set<std::string> headers_;
RV32IMACFDGDBCore gdbcore_;
unsigned int coreno_;
};
#endif
14 changes: 12 additions & 2 deletions ArchImpl/RV32IMACFD/RV32IMACFDArchLib.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Generated on Tue, 28 Nov 2023 09:45:19 +0100.
* Generated on Wed, 08 May 2024 17:36:07 +0200.
*
* This file contains the library interface for the RV32IMACFD core architecture.
*/
Expand All @@ -10,6 +10,7 @@
#define ETISS_LIBNAME RV32IMACFD
#include "etiss/helper/CPUArchLibrary.h" // defines the following functions
#include "RV32IMACFDArch.h"
#include <string>
extern "C" {

ETISS_LIBRARYIF_VERSION_FUNC_IMPL
Expand All @@ -36,7 +37,16 @@ extern "C" {
switch (index)
{
case 0:
return new RV32IMACFDArch();
{
auto it = options.find("coreno");
unsigned int coreno = 0;
if (it != options.end())
coreno = std::stoul(it->second);
else
etiss::log(etiss::WARNING, "no core number provided for core, using 0");

return new RV32IMACFDArch(coreno);
}
default:
return 0;
}
Expand Down
2 changes: 1 addition & 1 deletion ArchImpl/RV32IMACFD/RV32IMACFDArchSpecificImp.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Generated on Tue, 28 Nov 2023 09:45:19 +0100.
* Generated on Wed, 08 May 2024 17:36:07 +0200.
*
* This file contains the architecture specific header for the RV32IMACFD
* core architecture.
Expand Down
Loading

0 comments on commit a398efb

Please sign in to comment.