Skip to content

Commit

Permalink
Jeffnye gh/fsl submodule (#175)
Browse files Browse the repository at this point in the history
convert fusion support to sub-module fsl.

remove the old fusion dir. Add a cmake var so fsl uses olympia/mavis
when it is instantiated as a submodule.

---------

Signed-off-by: jeffnye-gh <[email protected]>
Co-authored-by: Jeff Nye <jeff@www.condorcomputing.com>
  • Loading branch information
jeffnye-gh and Jeff Nye authored Jul 30, 2024
1 parent 56ecf7a commit 3313738
Show file tree
Hide file tree
Showing 35 changed files with 22 additions and 7,641 deletions.
5 changes: 4 additions & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,7 @@
url = [email protected]:sparcians/mavis
[submodule "stf_lib"]
path = stf_lib
url = [email protected]:sparcians/stf_lib
url = https://github.com/sparcians/stf_lib.git
[submodule "fsl"]
path = fsl
url = https://github.com/Condor-Performance-Modeling/fsl
8 changes: 6 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -62,15 +62,19 @@ set(CMAKE_CXX_FLAGS_DEBUG "-O0 -g")

# Include directories
include_directories (core mss sim)
include_directories (SYSTEM fusion)
include_directories (SYSTEM fsl)
include_directories (SYSTEM mavis)
include_directories (SYSTEM stf_lib)

# Mavis, the Core, MSS, the simulator and Fusion

add_subdirectory (mavis)
add_subdirectory (core)
add_subdirectory (mss)
add_subdirectory (fusion)

# Tell FSL to use the top mavis submodule, instead of fsl's submodule
set(FSL_MAVIS_PATH "${CMAKE_CURRENT_SOURCE_DIR}/mavis")
add_subdirectory (fsl)

# Add STF library to the build
add_subdirectory (${STF_LIB_BASE})
Expand Down
2 changes: 1 addition & 1 deletion core/Decode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

#include "Decode.hpp"
#include "VectorUopGenerator.hpp"
#include "fusion/FusionTypes.hpp"
#include "fsl_api/FusionTypes.h"

#include "sparta/events/StartupEvent.hpp"
#include "sparta/utils/LogUtils.hpp"
Expand Down
12 changes: 6 additions & 6 deletions core/Decode.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@
#include "InstGroup.hpp"
#include "MavisUnit.hpp"

#include "fusion/FieldExtractor.hpp"
#include "fusion/Fusion.hpp"
#include "fusion/FusionGroup.hpp"
#include "fusion/FusionTypes.hpp"
#include "fusion/HCache.hpp"
#include "fusion/MachineInfo.hpp"
#include "fsl_api/FieldExtractor.h"
#include "fsl_api/Fusion.h"
#include "fsl_api/FusionGroup.h"
#include "fsl_api/FusionTypes.h"
#include "fsl_api/HCache.h"
#include "fsl_api/MachineInfo.h"

#include "sparta/ports/DataPort.hpp"
#include "sparta/events/UniqueEvent.hpp"
Expand Down
7 changes: 4 additions & 3 deletions core/FusionDecode.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// TODO: add Condor header - this is a new file
// contact jeff at condor
#include "fusion/FusionTypes.hpp"
// Support methods for the fusion decoder
// 2024.07.25 Jeff Nye

#include "fsl_api/FusionTypes.h"
#include "Decode.hpp"

#include "sparta/events/StartupEvent.hpp"
Expand Down
1 change: 1 addition & 0 deletions fsl
Submodule fsl added at a50652
45 changes: 0 additions & 45 deletions fusion/CMakeLists.txt

This file was deleted.

Loading

0 comments on commit 3313738

Please sign in to comment.