• ffs() is in <strings.h> although bsd compatible systems have it in
    <string.h> already.  ffs() is used in omap1.c, omap2.c, omap_i2c.c,
    bt-sdp.c.  These uses can be replaced with clz32() but ffs is more
    available.  Problem was spotted by malc.
    
    Make host-utils.h formatting more consistent.
    
    
    git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5708 c046a42c-6fe2-441c-8c8c-71466251a162
    balrog authored
     
    Browse Code »
  • The patch in r5531 which replaced a bunch of strncpy with pstrcpy causes
    the x509 credentials from the -vnc parameter to be one character shorter
    than entered meaning that there is currently no way to enter x509
    certificates...
    
    
    git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5707 c046a42c-6fe2-441c-8c8c-71466251a162
    balrog authored
     
    Browse Code »
  • After going through the debug log and scratching my head for quite some
    time. I found the following:
    
    The problem was with this block move:
    
    lsi_scsi: SCRIPTS dsp=0fae8e50 opcode 01000028 arg 00f63c40
    lsi_scsi: DMA addr=0x00f63c40 len=36
    
    The number of bytes to be transferred (len) should be 40 which corresponds
    to the block transfer of length 0x28 (from opcode 01000028). Instead we
    have a length of 36 (0x24). The code responsible for this is (in
    'lsi_do_dma'):
    
    if (count > s->current_dma_len)
       count = s->current_dma_len;
    
    Basically we're overwriting the length 40 with the value 36 which I
    think we just left over in that variable from an earlier transfer. In my
    patch below I initialize s->current_dma_len to s->dbc before we begin
    the DMA transfer during Data In phase.
    
    The attached patch gets Openserver 5.0.5 past the hardware detection
    (and it lists the hard drive to boot, woohoo). It appears to stop a
    little while later (doesn't seem SCSI related), but it's been so long since
    I've booted Openserver I'm not sure what's supposted to happen after the HW
    detection using the boot/root disks.
    
    Props go to Craig Ringer for the initial post and the code that he posted
    some of which is in this patch.
    
    
    git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5706 c046a42c-6fe2-441c-8c8c-71466251a162
    balrog authored
     
    Browse Code »
  • this patch fixes two variable initialization issues.
    
    Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    
    
    
    git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5705 c046a42c-6fe2-441c-8c8c-71466251a162
    aliguori authored
     
    Browse Code »
  • This patch fixes the two following problems for Alpha linux-user:
       - termbits.h is incorrectly using host IOC macros and structures
       - IOC bitfields sizes are incorrectly set
    
    This patch corrects the ioctl TCGETS done by isatty function call
    on Alpha (when running SPEC crafty for instance).
    
    Signed-off-by: Laurent Desnogues <laurent.desnogues@gmail.com>
    Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
    
    git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5704 c046a42c-6fe2-441c-8c8c-71466251a162
    aurel32 authored
     
    Browse Code »