Skip to content

Commit

Permalink
update arch
Browse files Browse the repository at this point in the history
  • Loading branch information
wysiwyng committed Nov 3, 2023
1 parent cca5b6a commit 2a29d8e
Show file tree
Hide file tree
Showing 56 changed files with 1,475 additions and 1,485 deletions.
3 changes: 2 additions & 1 deletion ArchImpl/RV32IMACFD/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Generated on Mon, 02 Oct 2023 18:56:15 +0200.
# Generated on Fri, 03 Nov 2023 13:22:23 +0100.
#
# This file contains the CMake build info for the RV32IMACFD core architecture.

Expand All @@ -11,6 +11,7 @@ ADD_LIBRARY(${PROJECT_NAME} SHARED
RV32IMACFDArch.cpp
RV32IMACFDArchLib.cpp
RV32IMACFDArchSpecificImp.cpp
RV32IMACFDFuncs.c
RV32IMACFDInstr.cpp
RV32IMACFD_RV32IInstr.cpp
RV32IMACFD_RV32ICInstr.cpp
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 Mon, 02 Oct 2023 18:56:15 +0200.
* Generated on Fri, 03 Nov 2023 13:22:23 +0100.
*
* This file contains the registers for the RV32IMACFD core architecture.
*/
Expand Down
4 changes: 1 addition & 3 deletions ArchImpl/RV32IMACFD/RV32IMACFDArch.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Generated on Mon, 02 Oct 2023 18:56:15 +0200.
* Generated on Fri, 03 Nov 2023 13:22:23 +0100.
*
* This file contains the architecture class for the RV32IMACFD core architecture.
*/
Expand Down Expand Up @@ -35,8 +35,6 @@
*********************************************************************************************************************************/

#include "RV32IMACFDArch.h"

#define ETISS_ARCH_STATIC_FN_ONLY
#include "RV32IMACFDFuncs.h"

#define RV32IMACFD_DEBUG_CALL 0
Expand Down
2 changes: 1 addition & 1 deletion ArchImpl/RV32IMACFD/RV32IMACFDArch.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Generated on Mon, 02 Oct 2023 18:56:15 +0200.
* Generated on Fri, 03 Nov 2023 13:22:23 +0100.
*
* This file contains the architecture class for the RV32IMACFD core architecture.
*/
Expand Down
2 changes: 1 addition & 1 deletion ArchImpl/RV32IMACFD/RV32IMACFDArchLib.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Generated on Mon, 02 Oct 2023 18:56:15 +0200.
* Generated on Fri, 03 Nov 2023 13:22:23 +0100.
*
* This file contains the library interface for the RV32IMACFD core architecture.
*/
Expand Down
11 changes: 3 additions & 8 deletions ArchImpl/RV32IMACFD/RV32IMACFDArchSpecificImp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,7 @@

#include "RV32IMACFDArch.h"
#include "RV32IMACFDArchSpecificImp.h"

#define ETISS_ARCH_STATIC_FN_ONLY
extern "C" {
#include "RV32IMACFDFuncs.h"
}

/**
@brief This function will be called automatically in order to handling exceptions such as interrupt, system call, illegal instructions
Expand All @@ -34,9 +30,8 @@ extern "C" {
*/
etiss::int32 RV32IMACFDArch::handleException(etiss::int32 cause, ETISS_CPU * cpu)
{
translate_exc_code(cpu, nullptr, nullptr, cause);
RV32IMACFD_translate_exc_code(cpu, nullptr, nullptr, cause);
cpu->instructionPointer = cpu->nextPc;

return 0;
}

Expand Down Expand Up @@ -126,7 +121,7 @@ error_code += R_error_code_0.read(ba) << 0;
// -----------------------------------------------------------------------------
{ // procedure
cp.code() += "{ // procedure\n";
cp.code() += "translate_exc_code(cpu, system, plugin_pointers, " + std::to_string(error_code) + "ULL);\n";
cp.code() += "RV32IMACFD_translate_exc_code(cpu, system, plugin_pointers, " + std::to_string(error_code) + "ULL);\n";
cp.code() += "goto instr_exit_" + std::to_string(ic.current_address_) + ";\n";
cp.code() += "} // procedure\n";
} // procedure
Expand Down Expand Up @@ -173,7 +168,7 @@ error_code += R_error_code_0.read(ba) << 0;
// -----------------------------------------------------------------------------
{ // procedure
cp.code() += "{ // procedure\n";
cp.code() += "translate_exc_code(cpu, system, plugin_pointers, " + std::to_string(error_code) + "ULL);\n";
cp.code() += "RV32IMACFD_translate_exc_code(cpu, system, plugin_pointers, " + std::to_string(error_code) + "ULL);\n";
cp.code() += "goto instr_exit_" + std::to_string(ic.current_address_) + ";\n";
cp.code() += "} // procedure\n";
} // procedure
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 Mon, 02 Oct 2023 18:56:15 +0200.
* Generated on Fri, 03 Nov 2023 13:22:23 +0100.
*
* This file contains the architecture specific header for the RV32IMACFD
* core architecture.
Expand Down
Loading

0 comments on commit 2a29d8e

Please sign in to comment.