On 03/14/2012 07:24 PM, salvador wrote:
> Hello
>
> If i try the command  " mdw addr n " with n greater than 1024 the data
> displayed is wrong from 1025 onward.
>
>
>
> The bug is located in mips32_pracc.c, in function mips32_pracc_read_mem32
>
>
> About line 364:
>
>
>                   count -= blocksize;
>                   addr += blocksize;
>                   bytesread += blocksize;
>
>
> Should be:
>
>                   count -= blocksize;
>                   addr += blocksize * sizeof(uint32_t);
>                   bytesread += blocksize;
>
>
>
> " bytesread "  is a variable that counts words.... A little confusing,
> isn't it?
>
>
> Thanks
> Salvador.
>
> ------------------------------------------------------------------------------
> Virtualization&  Cloud Management Using Capacity Planning
> Cloud computing makes use of virtualization - but cloud computing
> also focuses on allowing computing to be delivered as a service.
> http://www.accelacomm.com/jaw/sfnl/114/51521223/
> _______________________________________________
> OpenOCD-devel mailing list
> OpenOCD-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/openocd-devel
Sorry Drasko, i can see your reply at openocd mail archives but not in 
my mail box, so i reply to my first mail.

Step by step:

1.-   There is no call to mips32_pracc_read_mem32()  in 
mips_m4k_read_memory().

2.-   I guess you mean a call to mips32_pracc_read_mem(). This function 
has a parameter  "int size".

3.-   The function mips32_pracc_read_mem() is defined in mips32_pracc.c 
.     This function calls mips32_pracc_read_mem32() only if the 
parameter size is 4 (WORD) and count >1.

4.-   In function mips32_pracc_read_mem32(),  in the call to 
mips32_pracc_exec() the variable bytesread is used as an index in a 
matrix of uint32_t (WORDS).


Sorry but i can not  find anything in the code that says "bytesread" or 
"count" counts bytes. But WORDS, yes.

Thanks
Salvador.














------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
OpenOCD-devel mailing list
OpenOCD-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to