coresight-wire-protocol icon indicating copy to clipboard operation
coresight-wire-protocol copied to clipboard

Requesting clarification wrt memory read operation in CSWP server

Open aanuroop opened this issue 2 years ago • 0 comments

Inside the below function : in file /target/cswp_server/cswp_impl.c static int cswp_server_impl_mem_read

There is a line which states:

    /* Only device 0 supports mem access */
    if (deviceIndex != 0)
        return CSWP_UNSUPPORTED;

Based on my understanding , even a mem-ap device (which has a non 0 device index) supports MEM accesses. The above condition (which returns CSWP_UNSUPPORTED if it sees deviceIndex !=0 ) however has higher priority than the code written for mem-ap to handle MEM read operation.

Can you please help clarify if that is expected ?

aanuroop avatar Dec 05 '23 13:12 aanuroop