This commit is contained in:
parent
fef3e352be
commit
93c948cb3a
|
|
@ -1,4 +1,6 @@
|
||||||
#include "cache.h"
|
#include "cache.h"
|
||||||
|
using namespace std;
|
||||||
|
|
||||||
Cache::Cache(char *argv[])
|
Cache::Cache(char *argv[])
|
||||||
{
|
{
|
||||||
this->blockSize = atoi(argv[1]);
|
this->blockSize = atoi(argv[1]);
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,7 @@
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <ostream>
|
#include <ostream>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
using namespace std;
|
||||||
|
|
||||||
struct CacheTIO {
|
struct CacheTIO {
|
||||||
uint32_t tag, index, offset;
|
uint32_t tag, index, offset;
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
#include "cache.h"
|
#include "cache.h"
|
||||||
#include "public.h"
|
#include "public.h"
|
||||||
|
using namespace std;
|
||||||
|
|
||||||
int main(int argc, char *argv[])
|
int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -4,4 +4,10 @@
|
||||||
#define LFU 1
|
#define LFU 1
|
||||||
|
|
||||||
#define WBWA 0
|
#define WBWA 0
|
||||||
#define WTNA
|
#define WTNA
|
||||||
|
|
||||||
|
#include <algorithm>
|
||||||
|
#include <cstdint>
|
||||||
|
#include <exception>
|
||||||
|
#include <fstream>
|
||||||
|
#include <iostream>
|
||||||
Loading…
Reference in New Issue