Jump to content

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.


Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...