Michael Bruck: fixed warnings

git-svn-id: svn://svn.berlios.de/openocd/trunk@471 b42882b7-edfa-0310-969c-e2dbd0fdcd60
This commit is contained in:
oharboe
2008-03-07 16:18:56 +00:00
parent 081bc06112
commit d3f3f61498
8 changed files with 28 additions and 16 deletions

View File

@@ -723,13 +723,18 @@ int etmv1_data(etm_context_t *ctx, int size, u32 *data)
}
if (size == 8)
{
ERROR("TODO: add support for 64-bit values");
return -1;
}
else if (size == 4)
*data = target_buffer_get_u32(ctx->target, buf);
else if (size == 2)
*data = target_buffer_get_u16(ctx->target, buf);
else if (size == 1)
*data = buf[0];
else
return -1;
return 0;
}