Jump to content
mohitnegi

Issue with Virtual platform integration

Recommended Posts

hello ,

 

I have a virtual platform(versatilepb based) which I am using to validate my Universal flash subsystem(UFS) host controller TLM model.
From OS, when it issue SCSI command, the underlying ufshcd driver make a data packet and put in in system memory. The system memory is allocated using dmam_alloc_coherent. The driver also write the starting address of this memory in UFS host controller register.  You can see this driver  in linux-3.17.2/drivers/scsi/ufs

 
Now when in TLM model I read that register, I get the correct address bus when I try to access this address as
uint8_t data1 = *( uint8_t *) (address);
I am getting segmentation fault.

My question is can I directly access system memory address in TLM model as I am doing above or I need to do something special.

 

Thanks

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×