update gitlab ci file

parent ce750fef
Pipeline #812 passed with stages
in 10 minutes and 46 seconds
......@@ -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
......
......@@ -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.
......
#!/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 $?
......@@ -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() {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment