Skip to content

Commit 5cf6797

Browse files
- Change STARTUP_ADDR to use the same 0x80000000 address
- Fix environment variable for vortex kernel directories
1 parent bbc02cc commit 5cf6797

File tree

7 files changed

+21
-30
lines changed

7 files changed

+21
-30
lines changed

.github/workflows/ci.yml

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ jobs:
2121

2222
steps:
2323
- name: Checkout code
24-
uses: actions/checkout@v4
24+
uses: actions/checkout@v2
2525
with:
2626
submodules: recursive
2727

2828
- name: Cache Toolchain Directory
2929
id: cache-toolchain
30-
uses: actions/cache@v4
30+
uses: actions/cache@v2
3131
with:
3232
path: tools
3333
key: ${{ runner.os }}-toolchain-v0.1
@@ -36,7 +36,7 @@ jobs:
3636
3737
- name: Cache Third Party Directory
3838
id: cache-thirdparty
39-
uses: actions/cache@v4
39+
uses: actions/cache@v2
4040
with:
4141
path: third_party
4242
key: ${{ runner.os }}-thirdparty-v0.1
@@ -71,15 +71,15 @@ jobs:
7171

7272
steps:
7373
- name: Checkout code
74-
uses: actions/checkout@v4
74+
uses: actions/checkout@v2
7575

7676
- name: Install Dependencies
7777
run: |
7878
sudo bash ./ci/install_dependencies.sh
7979
8080
- name: Cache Toolchain Directory
8181
id: cache-toolchain
82-
uses: actions/cache@v4
82+
uses: actions/cache@v2
8383
with:
8484
path: tools
8585
key: ${{ runner.os }}-toolchain-v0.1
@@ -88,7 +88,7 @@ jobs:
8888
8989
- name: Cache Third Party Directory
9090
id: cache-thirdparty
91-
uses: actions/cache@v4
91+
uses: actions/cache@v2
9292
with:
9393
path: third_party
9494
key: ${{ runner.os }}-thirdparty-v0.1
@@ -106,31 +106,31 @@ jobs:
106106
make tests -s > /dev/null
107107
108108
- name: Upload Build Artifact
109-
uses: actions/upload-artifact@v4
109+
uses: actions/upload-artifact@v3
110110
with:
111111
name: build-${{ matrix.xlen }}
112112
path: build${{ matrix.xlen }}
113113

114-
test:
114+
tests:
115115
runs-on: ubuntu-20.04
116116
needs: build
117117
strategy:
118118
fail-fast: false
119119
matrix:
120-
name: [regression, opencl, cache, config1, config2, debug, scope, stress, synthesis, vm ]
120+
name: [regression, opencl, cache, config1, config2, debug, scope, stress, synthesis, vm]
121121
xlen: [32, 64]
122122

123123
steps:
124124
- name: Checkout code
125-
uses: actions/checkout@v4
125+
uses: actions/checkout@v2
126126

127127
- name: Install Dependencies
128128
run: |
129129
sudo bash ./ci/install_dependencies.sh
130130
131131
- name: Cache Toolchain Directory
132132
id: cache-toolchain
133-
uses: actions/cache@v4
133+
uses: actions/cache@v2
134134
with:
135135
path: tools
136136
key: ${{ runner.os }}-toolchain-v0.1
@@ -139,18 +139,19 @@ jobs:
139139
140140
- name: Cache Third Party Directory
141141
id: cache-thirdparty
142-
uses: actions/cache@v4
142+
uses: actions/cache@v2
143143
with:
144144
path: third_party
145145
key: ${{ runner.os }}-thirdparty-v0.1
146146
restore-keys: |
147147
${{ runner.os }}-thirdparty-
148148
149149
- name: Download Build Artifact
150-
uses: actions/download-artifact@v4
150+
uses: actions/download-artifact@v3
151151
with:
152152
name: build-${{ matrix.xlen }}
153153
path: build${{ matrix.xlen }}
154+
154155
- name: Run tests
155156
run: |
156157
cd build${{ matrix.xlen }}
@@ -167,7 +168,7 @@ jobs:
167168
168169
complete:
169170
runs-on: ubuntu-20.04
170-
needs: test
171+
needs: tests
171172

172173
steps:
173174
- name: Check Completion

ci/regression.sh.in

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -269,11 +269,7 @@ config2()
269269

270270
# custom program startup address
271271
make -C tests/regression/dogfood clean-kernel
272-
if [ "$XLEN" == "64" ]; then
273-
STARTUP_ADDR=0x180000000 make -C tests/regression/dogfood
274-
else
275-
STARTUP_ADDR=0x80000000 make -C tests/regression/dogfood
276-
fi
272+
STARTUP_ADDR=0x80000000 make -C tests/regression/dogfood
277273
./ci/blackbox.sh --driver=simx --app=dogfood
278274
./ci/blackbox.sh --driver=rtlsim --app=dogfood
279275
make -C tests/regression/dogfood clean-kernel

config.mk.in

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,4 @@ RISCV_TOOLCHAIN_PATH ?= $(TOOLDIR)/riscv$(XLEN)-gnu-toolchain
3131
RISCV_PREFIX ?= riscv$(XLEN)-unknown-elf
3232
RISCV_SYSROOT ?= $(RISCV_TOOLCHAIN_PATH)/$(RISCV_PREFIX)
3333

34-
VORTEX_RT_PATH ?= $(VORTEX_HOME)/runtime
35-
VORTEX_KN_PATH ?= $(VORTEX_HOME)/kernel
36-
3734
THIRD_PARTY_DIR ?= $(VORTEX_HOME)/third_party

hw/rtl/VX_config.vh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@
177177
`endif
178178

179179
`ifndef STARTUP_ADDR
180-
`define STARTUP_ADDR 64'h180000000
180+
`define STARTUP_ADDR 64'h080000000
181181
`endif
182182

183183
`ifndef USER_BASE_ADDR
@@ -190,7 +190,7 @@
190190

191191
`ifdef VM_ENABLE
192192
`ifndef PAGE_TABLE_BASE_ADDR
193-
`define PAGE_TABLE_BASE_ADDR 64'h1F0000000
193+
`define PAGE_TABLE_BASE_ADDR 64'h0F0000000
194194
`endif
195195

196196
`endif

tests/kernel/common.mk

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,10 @@ ROOT_DIR := $(realpath ../../..)
22

33
ifeq ($(XLEN),64)
44
CFLAGS += -march=rv64imafd -mabi=lp64d
5-
STARTUP_ADDR ?= 0x180000000
65
else
76
CFLAGS += -march=rv32imaf -mabi=ilp32f
8-
STARTUP_ADDR ?= 0x80000000
97
endif
8+
STARTUP_ADDR ?= 0x80000000
109

1110
VORTEX_KN_PATH ?= $(ROOT_DIR)/kernel
1211

tests/opencl/common.mk

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,12 @@ TARGET ?= opaesim
55
XRT_SYN_DIR ?= $(VORTEX_HOME)/hw/syn/xilinx/xrt
66
XRT_DEVICE_INDEX ?= 0
77

8+
STARTUP_ADDR ?= 0x80000000
89
ifeq ($(XLEN),64)
910
VX_CFLAGS += -march=rv64imafd -mabi=lp64d
10-
STARTUP_ADDR ?= 0x180000000
1111
POCL_CC_FLAGS += POCL_VORTEX_XLEN=64
1212
else
1313
VX_CFLAGS += -march=rv32imaf -mabi=ilp32f
14-
STARTUP_ADDR ?= 0x80000000
1514
POCL_CC_FLAGS += POCL_VORTEX_XLEN=32
1615
endif
1716

tests/regression/common.mk

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,11 @@ XRT_DEVICE_INDEX ?= 0
88
VORTEX_RT_PATH ?= $(ROOT_DIR)/runtime
99
VORTEX_KN_PATH ?= $(ROOT_DIR)/kernel
1010

11+
STARTUP_ADDR ?= 0x80000000
1112
ifeq ($(XLEN),64)
1213
VX_CFLAGS += -march=rv64imafd -mabi=lp64d
13-
STARTUP_ADDR ?= 0x180000000
1414
else
1515
VX_CFLAGS += -march=rv32imaf -mabi=ilp32f
16-
STARTUP_ADDR ?= 0x80000000
1716
endif
1817

1918
LLVM_CFLAGS += --sysroot=$(RISCV_SYSROOT)

0 commit comments

Comments
 (0)