Skip to content
This repository has been archived by the owner on Sep 28, 2019. It is now read-only.

Commit

Permalink
Merge pull request #16 from sifive/0.13
Browse files Browse the repository at this point in the history
Refactor code to support multiple debug spec versions.
  • Loading branch information
timsifive authored Feb 6, 2017
2 parents 9bab078 + ecc5b6e commit d78ee93
Show file tree
Hide file tree
Showing 6 changed files with 5,377 additions and 2,299 deletions.
2 changes: 2 additions & 0 deletions src/target/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,8 @@ INTEL_IA32_SRC = \
x86_32_common.c

RISCV_SRC = \
riscv/riscv-011.c \
riscv/riscv-013.c \
riscv/riscv.c

noinst_HEADERS = \
Expand Down
7 changes: 7 additions & 0 deletions src/target/riscv/opcodes.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@
#define S0 8
#define S1 9

/*
* Disabling the warning we get when some opcodes functions aren't used. Not
* every user of this file uses every function, and it doesn't make sense to
* make them global. I suppose they could be macros.
*/
#pragma GCC diagnostic ignored "-Wunused-function"

static uint32_t bits(uint32_t value, unsigned int hi, unsigned int lo) {
return (value >> lo) & ((1 << (hi+1-lo)) - 1);
}
Expand Down
Loading

0 comments on commit d78ee93

Please sign in to comment.