Giter Club home page Giter Club logo

Comments (7)

rchoudhary avatar rchoudhary commented on July 23, 2024

Apologies for responding so late! For some reason Github didn't inform me that an issue had been posted...

In any case, what program are you testing SPT hardware on?

Also, have you tried running with the --track-insts option? It might tell what is causing the simulator to hang.

from spt.

pluviophilee avatar pluviophilee commented on July 23, 2024

Thank you for replying.

Our command is "build/X86_MESI_Two_Level/gem5.fast --outdir=m5out configs/example/se.py -c test --num-cpus=1 --mem-size=4GB --num-l2caches=1 --l1d_assoc=8 --l2_assoc=16 --l1i_assoc=4 --cpu-type=DerivO3CPU --needsTSO=1 --scheme=SpectreSafeFence --num-dirs=1 --ruby --applyDDIFT=1 --configImpFlow=Ignore --moreTransmitInsts=1 --ifPrintROB=0 --network=simple --topology=Mesh_XY --mesh-rows=1 --printDelayCycles=0 --enableShadowL1=1 --bottomlessShadowL1=0 --untaintTier=0 --freeParam=3 --disableUntaint=0 --fwdUntaint=1 --bwdUntaint=1 --idealUntaint=0"

And here is the test code:

#include<stdio.h>

void aaa()
{
	int t[512*128]={0};
	int flag = 0;
	for(int i = 0;i < 100;i ++){
		if(i < 10){
			flag &= i;
			t[i*512] ++;
			t[i*512] = t[i*512]+flag;
			flag += i;
		}
	}
	return ;
}

int main()
{
	int a = 0,i = 1;
	a ++;
	if(i > 10){
		a &= i;
		
	}
	int temp = a ++;
	for(int j = 1;j < 10;j ++){
		temp &= a;
		a ++;
	}
	aaa();
	return 0;
}

We set the moreTransmitInsts as 1 to consider div insts. After analyzing the reason of blocking, it seems like several tainted div insts are never untained, then they can not be issued.

from spt.

rchoudhary avatar rchoudhary commented on July 23, 2024

Thanks! I'll try running that program and see what the issue is.

from spt.

pluviophilee avatar pluviophilee commented on July 23, 2024

Ok. Thanks : )

from spt.

rchoudhary avatar rchoudhary commented on July 23, 2024

What flags are you compiling the program with?

from spt.

pluviophilee avatar pluviophilee commented on July 23, 2024

I have tried to compile it with "-O0" and "-O0 -static". And, my gcc version is "gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.12) ".

from spt.

rchoudhary avatar rchoudhary commented on July 23, 2024

@pluviophilee Apologies for the late update. PR #2 should fix the issue. Please let me know if this works or if you run into any more trouble!

from spt.

Related Issues (1)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.