From ec3413a52da1021583671f6c2d81b81e4eb99b73 Mon Sep 17 00:00:00 2001 From: Manuel Gomez Date: Tue, 29 May 2018 23:04:24 -0500 Subject: [PATCH] 13th commit: Getting MANY segmentation faults, cleaned up some compilation bugs. Fixes coming soon. --- csim | Bin 18496 -> 22624 bytes csim.c | 5 +++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/csim b/csim index e3eded4134bd1e18e16966f9d82e942a3324f5e3..77b18ab6965877c0c910a3fc20353cdd49e11816 100755 GIT binary patch literal 22624 zcmeHPdw5jUwclqZ6DG-!1VSLZkCX^L^59K)nE-=>28<9CT6LVvOp?*b%yb?QtO#w4 zG99DDudTMVf_mHPt+uxJw&eoaP+Gz2ZPB($Z(nIEb|TbLQ7=^__qX~pp|8&_F0jj3d1%NXa11X3>x`ma$EjMcM+tN_Pp>>`#A zI1j&iS!||fq-jO%QqBrWdJ8QAFw;p=PEq9{QJX9qj?_;UsG^MN93VaNRj=YKsLnHr zo|1k<$T3mEj|7umt<JTlwT*twvfNBpqKuNFBulC3c-%*M`$W#3M}q=p ziYmQpp+|mx*iF^-I6>Ur{v!&~SoA)L^)-t|x+p-_lzxd_$HBbD3WGnDf<0b|@ z&qCOE{Ql+9{~TTSR!U6|AlYdw6h~)6oVyRl;qb5J!09y5@iV8b0EV-3CI6kOTMTzz^iWf13lpDF;3uxQ?GWy$@hG zKTiUmW)=qj5`LpF)AU-Mm#Xvkn8fQ%IK#Z}plLpzxmP!@ar^vHe_J3H_eY!8tO$lf z{$@{0(9hiNwvKSf9gBOSakpED4l5W5Zy}RjVbb3jh_lvk#2Rh`wZ>TdM}f`oe8Jy8^RVlhAJ;%IA|p9}k=(NNeO40}ECKsdyJh9j`= z4TfWW*5L`FgaPqH+gL1)mPDB+9uBb9NHh?Nx5B8m)8lRpggn8(ZGMPEArhv_$Ya^K z4o@J&TBCkHyRvch@)hpc)w8STW%3I$xw+K67XD9AE6?W{Fq_QNxi2IwIREJ%V{|>y z@k>ky6wsA*B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)CFpSKeN{PDPdGd6HZ9Exa<`@2F$5Jx07!^9*Rw09^_m4{|V z*-*M`>+yq(VJu(Wu)=G2S1zMHCU1t~3!GugyX=OQ4J(?KLd%rH-?IXQ-G|}zNpHSo ztC?|S^EHhP&Bis$m#^`*7%dHr&0Z>jzq=GjqSa_SP5E$|1R$(@O zQLGTcj6kKtyIyj$DP9pPRFm(B6@tTC!{T@1j9?;WbmBaej95?@DQeI*cX<118Y$|1 z`GQ(u2}N(k4QF1;ym(&A#|4Zw?1{xpG4Epe4!PjCk11-x-@6<3Nd0Nr&W-X`pNM)D zTF?u0g$TXVSBMw}-XBz70D7@-)Hegw+joVwrr?cfw<@A1g__Kr*xZH9D`+w~ zYAD9v6%L>du_U<%LSHI3CIF7};Se5HFkqp!R0r(*(GDz)QVd7iV~Y2;wZ%g{O5*Vo zsf9kv-*NtD4DCzs$d-TZRr`GPUc5RNp-LfLb2z}iDATh)v zIAPtA@?X{fDSPa6dAbf)+8Sckn9;tG`c&DgIEkGG1<5B!zI>tzqSFoijs%}#89M{LRe+#xWca^=0m#P1+ zE783FeR*IEfeApAVoIBh~*rUl{zLD6>dp6n`ql$nxS%QY9Xrt diff --git a/csim.c b/csim.c index 51ca35e..a4e2c7b 100644 --- a/csim.c +++ b/csim.c @@ -135,7 +135,6 @@ void accessData(mem_addr_t addr) { cache_line_t *currLine; cache_line_t *head; cache_line_t *tail; - cache_line_t *newHead; cache_line_t *newTail; //Initializing the head, tail, and curr pointers: @@ -201,6 +200,8 @@ void accessData(mem_addr_t addr) { (head->next)->prev = head; } else { + //Backup node pointer to keep list intact. + cache_line_t *prevNode; prevNode = currLine->prev; prevNode->next = (cache_line_t *)currLine+1; (prevNode->next)->prev = prevNode; @@ -231,7 +232,7 @@ void accessData(mem_addr_t addr) { //Increase the chance for an eviction: else { - takenLines++; + linesTaken++; } currLine = currLine->next; }