Skip to content

Commit

Permalink
Merge pull request #116 from Risheng1128/master
Browse files Browse the repository at this point in the history
Remove the computed-goto option
  • Loading branch information
jserv authored Mar 1, 2023
2 parents 587313e + b2c761e commit 9f11a2b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 20 deletions.
15 changes: 0 additions & 15 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -55,21 +55,6 @@ $(OUT)/syscall_sdl.o: CFLAGS += $(shell sdl2-config --cflags)
LDFLAGS += $(shell sdl2-config --libs)
endif

# Whether to enable computed goto
ENABLE_COMPUTED_GOTO ?= 1
ifeq ($(call has, COMPUTED_GOTO), 1)
ifeq ("$(CC_IS_CLANG)$(CC_IS_GCC)",)
$(warning Computed goto is only supported in clang and gcc.)
override ENABLE_COMPUTED_GOTO := 0
endif
endif
$(call set-feature, COMPUTED_GOTO)
ifeq ($(call has, COMPUTED_GOTO), 1)
ifeq ("$(CC_IS_GCC)", "1")
$(OUT)/emulate.o: CFLAGS += -fno-gcse -fno-crossjumping
endif
endif

ENABLE_GDBSTUB ?= 1
$(call set-feature, GDBSTUB)
ifeq ($(call has, GDBSTUB), 1)
Expand Down
5 changes: 0 additions & 5 deletions src/feature.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,6 @@
#define RV32_FEATURE_SDL 1
#endif

/* Use computed goto to accelerate the interpreter */
#ifndef RV32_FEATURE_COMPUTED_GOTO
#define RV32_FEATURE_COMPUTED_GOTO 1
#endif

/* GDB remote debugging */
#ifndef RV32_FEATURE_GDBSTUB
#define RV32_FEATURE_GDBSTUB 1
Expand Down

0 comments on commit 9f11a2b

Please sign in to comment.