OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [branches/] [stable_0_2_x/] [or1ksim/] [bpb/] [branch_predict.c] - Diff between revs 26 and 28

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 26 Rev 28
Line 35... Line 35...
#include "stats.h"
#include "stats.h"
 
 
/* Branch prediction buffer */
/* Branch prediction buffer */
 
 
/* Length of BPB */
/* Length of BPB */
#define BPB_LEN 1024
#define BPB_LEN 64
 
 
/* Number of BPB ways (1, 2, 3 etc.). */
/* Number of BPB ways (1, 2, 3 etc.). */
#define BPB_WAYS 1
#define BPB_WAYS 1
 
 
/* Number of prediction states (2, 4, 8 etc.). */
/* Number of prediction states (2, 4, 8 etc.). */
#define BPB_PSTATES 4
#define BPB_PSTATES 2
 
 
/* Number of usage states (2, 3, 4 etc.). */
/* Number of usage states (2, 3, 4 etc.). */
#define BPB_USTATES 3
#define BPB_USTATES 2
 
 
/* branch prediction buffer entry */
/* branch prediction buffer entry */
struct bpb_entry {
struct bpb_entry {
        struct {
        struct {
                unsigned long addr;     /* address of a branch insn */
                unsigned long addr;     /* address of a branch insn */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.