Skip to content

Commit a750f59

Browse files
committed
Removed local predictor
1 parent 0edb9e4 commit a750f59

File tree

3 files changed

+3
-10
lines changed

3 files changed

+3
-10
lines changed

src/main.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ usage()
2626
fprintf(stderr," --<type> Branch prediction scheme:\n");
2727
fprintf(stderr," static\n"
2828
" gshare:<# ghistory>\n"
29-
" local:<# lhistory>:<# index>\n"
3029
" tournament:<# ghistory>:<# lhistory>:<# index>\n"
3130
" custom\n");
3231
}
@@ -44,9 +43,6 @@ handle_option(char *arg)
4443
} else if (!strncmp(arg,"--gshare:",9)) {
4544
bpType = GSHARE;
4645
sscanf(arg+9,"%d", &ghistoryBits);
47-
} else if (!strncmp(arg,"--local:",8)) {
48-
bpType = LOCAL;
49-
sscanf(arg+8,"%d:%d", &lhistoryBits, &pcIndexBits);
5046
} else if (!strncmp(arg,"--tournament:",13)) {
5147
bpType = TOURNAMENT;
5248
sscanf(arg+13,"%d:%d:%d", &ghistoryBits, &lhistoryBits, &pcIndexBits);

src/predictor.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const char *email = "EMAIL";
2020
//------------------------------------//
2121

2222
// Handy Global for use in output routines
23-
const char *bpName[5] = { "Static", "Gshare", "Local",
23+
const char *bpName[4] = { "Static", "Gshare",
2424
"Tournament", "Custom" };
2525

2626
int ghistoryBits; // Number of bits used for Global History
@@ -67,7 +67,6 @@ make_prediction(uint32_t pc)
6767
case STATIC:
6868
return TAKEN;
6969
case GSHARE:
70-
case LOCAL:
7170
case TOURNAMENT:
7271
case CUSTOM:
7372
default:

src/predictor.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,8 @@ extern const char *email;
2828
// The Different Predictor Types
2929
#define STATIC 0
3030
#define GSHARE 1
31-
#define LOCAL 2
32-
#define TOURNAMENT 3
33-
#define CUSTOM 4
34-
#define MYTEST 5
31+
#define TOURNAMENT 2
32+
#define CUSTOM 3
3533
extern const char *bpName[];
3634

3735
// Definitions for 2-bit counters

0 commit comments

Comments
 (0)