Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
recolic-hust
hust-x86-simulator
Commits
461d6a49
Verified
Commit
461d6a49
authored
Dec 31, 2019
by
Recolic Keghart
Browse files
update gitlab ci file
parent
ce750fef
Pipeline
#812
passed with stages
in 10 minutes and 46 seconds
Changes
7
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
461d6a49
...
...
@@ -9,7 +9,7 @@ build:
script
:
-
pacman -Sy && pacman -S --noconfirm bison flex gettext sdl2 lib32-glibc grep
-
export AM_HOME=$(pwd)/nexus-am/
-
cd nemu && make
-
cd nemu && make
EXTRA_FLAGS='-DDISABLE_MMIO'
-
show_log=1 ./runall.sh &> testcases.log ; echo $? > testres.log
artifacts
:
paths
:
...
...
@@ -17,6 +17,12 @@ build:
-
nemu/testcases.log
expire_in
:
1 week
build-icc-pgo
:
stage
:
build
script
:
-
pacman -Sy && pacman -S --noconfirm bison flex gettext sdl2 lib32-glibc grep
-
export AM_HOME=$(pwd)/nexus-am/
-
cd nemu && ./icc-build.sh
test
:
stage
:
test
...
...
nemu/5e0a2631_649414.dyn
deleted
100644 → 0
View file @
ce750fef
File deleted
nemu/Makefile
View file @
461d6a49
...
...
@@ -16,12 +16,11 @@ include Makefile.git
.DEFAULT_GOAL
=
app
# Compilation flags
CXX
=
icpc
CXX
?
=
g++
LD
=
$(CXX)
EXTRA_FLAGS
?=
-prof-use
INCLUDES
=
$(
addprefix
-I
,
$(INC_DIR)
)
CFLAGS
+=
-O3
-MMD
-Wall
$(INCLUDES)
-fomit-frame-pointer
-std
=
c++17
CFLAGS
+=
-no-ansi-alias
-DDISABLE_MMIO
-no-complex-limited-range
-qopt-prefetch
=
2
$(EXTRA_FLAGS)
CFLAGS
+=
$(EXTRA_FLAGS)
# CFLAGS += -DDIFF_TEST_QEMU
# Source code generation before any targets.
...
...
nemu/icc-build.sh
0 → 100755
View file @
461d6a49
#!/bin/bash
xflags
=
"-no-ansi-alias -DDISABLE_MMIO -no-complex-limited-range -qopt-prefetch=2"
cpus
=
$(
grep
-c
'^processor'
/proc/cpuinfo
)
make clean
&&
make
EXTRA_FLAGS
=
"
$xflags
-prof-gen"
CXX
=
icpc
-j
$cpus
&&
make
-C
"
$AM_HOME
/apps/microbench"
ARCH
=
x86-nemu
&&
build/nemu
-b
"
$AM_HOME
/apps/microbench/build/microbench-x86-nemu.bin"
&&
make clean
&&
make
EXTRA_FLAGS
=
"
$xflags
-prof-use"
CXX
=
icpc
-j
$cpus
exit
$?
nemu/pgopti.dpi
deleted
100644 → 0
View file @
ce750fef
File deleted
nemu/pgopti.dpi.lock
deleted
100644 → 0
View file @
ce750fef
nemu/src/device/vga.cc
View file @
461d6a49
...
...
@@ -37,11 +37,13 @@ static void init_vga_impl() {
}
void
update_screen
()
{
#ifndef DISABLE_MMIO
if
(
window
==
nullptr
)
init_vga_impl
();
SDL_ErrorCheck
(
SDL_UpdateTexture
(
texture
,
NULL
,
vmem
,
SCREEN_W
*
sizeof
(
vmem
[
0
][
0
])));
SDL_ErrorCheck
(
SDL_RenderClear
(
renderer
));
SDL_ErrorCheck
(
SDL_RenderCopy
(
renderer
,
texture
,
NULL
,
NULL
));
SDL_RenderPresent
(
renderer
);
#endif
}
void
init_vga
()
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment