Code C - [expand] |
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
| struct bpred_t * /* branch predictory instance */
bpred_create(enum bpred_class class, /* type of predictor to create */
unsigned int bimod_size, /* bimod table size */
unsigned int l1size, /* 2lev l1 table size */
unsigned int l2size, /* 2lev l2 table size */
unsigned int meta_size, /* meta table size */
unsigned int shift_width, /* history register width */
unsigned int xor, /* history xor address flag */
unsigned int btb_sets, /* number of sets in BTB */
unsigned int btb_assoc, /* BTB associativity */
unsigned int retstack_size) /* num entries in ret-addr stack */
{
struct bpred_t *pred;
if (!(pred = calloc(1, sizeof(struct bpred_t))))
fatal("out of virtual memory"); |
I want to know what the last part of the code i.e: If statement does..
Last edited by a moderator: