~vcs-imports/qemu/git

« back to all changes in this revision

Viewing changes to cris-dis.c

  • Committer: blueswir1
  • Date: 2007-11-25 08:48:16 UTC
  • Revision ID: git-v1:b76482e76560345c00e7d6c89199ced204a926d2
 Fix buffer mux handling for unconnected serial ports


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3737 c046a42c-6fe2-441c-8c8c-71466251a162

Show diffs side-by-side

added added

removed removed

Lines of Context:
2625
2625
     If we can't get any data, or we do not get enough data, we print
2626
2626
     the error message.  */
2627
2627
 
2628
 
  nbytes = info->buffer_length;
2629
 
  if (nbytes > MAX_BYTES_PER_CRIS_INSN)
2630
 
          nbytes = MAX_BYTES_PER_CRIS_INSN;
2631
 
  status = (*info->read_memory_func) (memaddr, buffer, nbytes, info);  
 
2628
  for (nbytes = MAX_BYTES_PER_CRIS_INSN; nbytes > 0; nbytes -= 2)
 
2629
    {
 
2630
      status = (*info->read_memory_func) (memaddr, buffer, nbytes, info);
 
2631
      if (status == 0)
 
2632
        break;
 
2633
    }
2632
2634
 
2633
2635
  /* If we did not get all we asked for, then clear the rest.
2634
2636
     Hopefully this makes a reproducible result in case of errors.  */